DepartmentProject/DepartmentPortal/Department/DepartmentContract/BindingModels/BasicDepartmentBindingModels.cs

31 lines
907 B
C#

using CoreModels.ModelsDepartment;
using System;
using System.ComponentModel.DataAnnotations;
using ToolsModule.ManagmentEntity;
namespace DepartmentContract.BindingModels
{
/// <summary>
/// Получение базовой кафедры
/// </summary>
public class BasicDepartmentGetBindingModel : GetBindingModel
{
public Guid? LecturerId { get; set; }
}
/// <summary>
/// Сохранение базовой кафедры
/// </summary>
public class BasicDepartmentSetBindingModel : SetBindingModel, IBasicDepartmentModel
{
public Guid? LecturerId { get; set; }
[Required(ErrorMessage = "required")]
public string BasicDepartmentName { get; set; }
public string BasicDepartmentDescription { get; set; }
[Required(ErrorMessage = "required")]
public string EnterprisesName { get; set; }
}
}