2024-12-19 08:47:36 +04:00

28 lines
823 B
C#

using Publication.Entites.Enums;
using System.ComponentModel;
public class Customers
{
public int Id { get; set; }
[DisplayName("ФИО заказчика")]
public string FullName { get; set; }
[DisplayName("Возраст")]
public int Age { get; set; }
[DisplayName("Тип заказчика")]
public TypeCustomers TypeCustomer { get; set; }
[DisplayName("Телефон")]
public string Phone { get; set; }
[DisplayName("Почта")]
public string Email { get; set; } = string.Empty;
public static Customers CreateEntity(int id, string fullName, int age, TypeCustomers typeCustomer, string phone, string email)
{
return new Customers { Id = id, FullName = fullName, Age = age, TypeCustomer = typeCustomer, Phone = phone, Email = email };
}
}