MethodicalCommission.cs 635 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Text.Json.Serialization;
  7. using System.Threading.Tasks;
  8. namespace OnlineMetodist.API.Models
  9. {
  10. public class MethodicalCommission
  11. {
  12. [Required]
  13. [Display(Name = "Id")]
  14. public Guid Id { get; set; }
  15. [Required]
  16. [Display(Name = "Название МК")]
  17. public string Name { get; set; } = null!;
  18. public Guid? IdHead { get; set; }
  19. [JsonIgnore]
  20. public Employee? HeadMC { get; set; }
  21. public ICollection<Employee> Employees { get; set; } = new List<Employee>();
  22. }
  23. }