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

28 lines
781 B
C#
Raw Normal View History

using CoreModels.ModelsDepartment;
using ToolsModule.BindingModels;
using System.ComponentModel.DataAnnotations;
namespace DepartmentContract.BindingModels
{
/// <summary>
/// Получение должности сотрудника
/// </summary>
public class PostGetBindingModel : GetBindingModel
{
}
/// <summary>
/// Сохранение должности сотрудника
/// </summary>
public class PostSetBindingModel : SetBindingModel, IPostModel
{
[Required(ErrorMessage = "required")]
public string PostName { get; set; }
[Required(ErrorMessage = "required")]
public int? Hours { get; set; }
[Required(ErrorMessage = "required")]
public int Order { get; set; }
}
}