using ProjectOptika.Scripts.Entities.Enums; using System.ComponentModel; namespace ProjectOptika.Scripts.Entities { public class Client { public int ID { get; private set; } [DisplayName("Тип клиента")] public ClientType ClientType { get; private set; } [DisplayName("Имя")] public string FirstName { get; private set; } [DisplayName("Отчество")] public string SecondName { get; private set; } [DisplayName("Фамилия")] public string Surname { get; private set; } [DisplayName("Номер телефона")] public string PhoneNumber { get; private set; } public string FullName => $"{FirstName} {SecondName} {Surname}"; public static Client CreateEntity(int id, ClientType clientType, string firstName, string secondName, string surname, string phoneNumber) { return new Client { ID = id, ClientType = clientType, FirstName = firstName, SecondName = secondName, Surname = surname, PhoneNumber = phoneNumber }; } } }