28 lines
786 B
C#
28 lines
786 B
C#
using CoreModels.ModelsDepartment;
|
|
using ToolsModule.BindingModels;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace DepartmentBusinessLogic.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; }
|
|
}
|
|
} |