53 lines
1.5 KiB
C#
53 lines
1.5 KiB
C#
using CoreModels.ModelsDepartment;
|
|
using ModuleTools.BindingModels;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace DepartmentBusinessLogic.BindingModels
|
|
{
|
|
/// <summary>
|
|
/// Получение сотрудника
|
|
/// </summary>
|
|
public class EmployeeGetBindingModel : GetBindingModel
|
|
{
|
|
public Guid? UserId { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Сохранение сотрудника
|
|
/// </summary>
|
|
public class EmployeeSetBindingModel : SetBindingModel, IEmployeeModel
|
|
{
|
|
[Required(ErrorMessage = "required")]
|
|
public Guid UserId { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
public string LastName { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
public string FirstName { get; set; }
|
|
|
|
public string Patronymic { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
public DateTime DateBirth { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
public string Address { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
public string Email { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
public string MobileNumber { get; set; }
|
|
|
|
public string HomeNumber { get; set; }
|
|
|
|
public string Description { get; set; }
|
|
|
|
public byte[] Photo { get; set; }
|
|
|
|
[Required(ErrorMessage = "required")]
|
|
public string GroupElectricalSafety { get; set; }
|
|
}
|
|
} |