DepartmentProject/DepartmentPortal/Department/DepartmentBusinessLogic/BindingModels/LecturerAcademicDegreeBindingModels.cs

27 lines
862 B
C#
Raw Normal View History

using ModuleTools.Attributes;
using ModuleTools.BindingModels;
using System.ComponentModel.DataAnnotations;
namespace DepartmentBusinessLogic.BindingModels
{
/// <summary>
/// Получение ученой степени преподавателя
/// </summary>
public class LecturerAcademicDegreeGetBindingModel : GetBindingModel
{
}
/// <summary>
/// Сохранение ученой степени преподавателя
/// </summary>
public class LecturerAcademicDegreeSetBindingModel : SetBindingModel
{
[Required(ErrorMessage = "required")]
[MapConfiguration("LecturerAcademicDegreeName")]
public string LecturerAcademicDegreeName { get; set; }
[Required(ErrorMessage = "required")]
[MapConfiguration("Order")]
public int Order { get; set; }
}
}