17 lines
591 B
C#
17 lines
591 B
C#
using Publication.Entites.Enums;
|
|
|
|
public class Customers
|
|
{
|
|
public int Id { get; set; }
|
|
public string FullName { get; set; }
|
|
public int Age { get; set; }
|
|
public TypeCustomers TypeCustomer { get; set; }
|
|
public string Phone { get; set; }
|
|
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 };
|
|
}
|
|
}
|