28 lines
783 B
C#
28 lines
783 B
C#
using CoreModels.ModelsDepartment;
|
|
using System.ComponentModel.DataAnnotations;
|
|
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; }
|
|
}
|
|
} |