28 lines
781 B
C#
28 lines
781 B
C#
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; }
|
|
}
|
|
} |