using ModuleTools.Attributes; using ModuleTools.BindingModels; using System; using System.ComponentModel.DataAnnotations; namespace DepartmentBusinessLogic.BindingModels { /// /// Получение связи преподавателя с должностью /// public class LecturerEmployeePostGetBindingModel : GetBindingModel { public Guid? LecturerId { get; set; } public Guid? EmployeePostId { get; set; } } /// /// Сохранение связи преподавателя с должностью /// public class LecturerEmployeePostSetBindingModel : SetBindingModel { [Required(ErrorMessage = "required")] [MapConfiguration("LecturerId")] public Guid LecturerId { get; set; } [Required(ErrorMessage = "required")] [MapConfiguration("EmployeePostId")] public Guid EmployeePostId { get; set; } [Required(ErrorMessage = "required")] [MapConfiguration("Rate")] public decimal Rate { get; set; } [MapConfiguration("IsInternalCombination")] public bool IsInternalCombination { get; set; } [MapConfiguration("IsExternalCombination")] public bool IsExternalCombination { get; set; } } }