2024-11-12 21:25:53 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace EmployeeManagmentContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class PhisicalPersonViewModel
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
|
public string Surname { get; set; } = string.Empty;
|
2024-11-26 22:35:12 +04:00
|
|
|
|
public string Patronymic { get; set; } = string.Empty;
|
2024-11-12 21:25:53 +04:00
|
|
|
|
public DateTime Birthday { get; set; }
|
|
|
|
|
public string Gender { get; set; } = string.Empty;
|
|
|
|
|
public string Address { get; set; } = string.Empty;
|
|
|
|
|
public string Telephone { get; set; } = string.Empty;
|
2024-11-30 15:44:45 +04:00
|
|
|
|
|
|
|
|
|
// Вычисляемое свойство для полного имени
|
|
|
|
|
public string FullName => $"{Surname} {Name} {Patronymic}";
|
|
|
|
|
|
|
|
|
|
// Вычисляемое свойство для полного имени с датой рождения
|
|
|
|
|
public string FullNameWithBirthday => $"{Surname} {Name} {Patronymic} ({Birthday:dd.MM.yyyy})";
|
|
|
|
|
|
2024-11-12 21:25:53 +04:00
|
|
|
|
}
|
|
|
|
|
}
|