using CoreModels.Enums.Department; using CoreModels.ModelsDepartment; using ModuleTools.BindingModels; using System; using System.ComponentModel.DataAnnotations; namespace DepartmentBusinessLogic.BindingModels { /// /// Получение студенческой группы /// public class StudentGroupGetBindingModel : GetBindingModel { public Guid? EducationDirectionId { get; set; } public Guid? LecturerId { get; set; } } /// /// Сохранение студенческой группы /// public class StudentGroupSetBindingModel : SetBindingModel, IStudentGroupModel { [Required(ErrorMessage = "required")] public Guid EducationDirectionId { get; set; } [Required(ErrorMessage = "required")] public int GroupNumber { get; set; } [Required(ErrorMessage = "required")] public AcademicCourse AcademicCourse { get; set; } public Guid? LecturerId { get; set; } } }