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

28 lines
783 B
C#
Raw Permalink Normal View History

using CoreModels.ModelsDepartment;
using System.ComponentModel.DataAnnotations;
2022-03-20 10:10:44 +04:00
using ToolsModule.ManagmentEntity;
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; }
}
}