32 lines
907 B
C#
32 lines
907 B
C#
|
using ProjectTourAgency.Enities.Enums;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace ProjectTourAgency.Enities;
|
|||
|
|
|||
|
public class Client
|
|||
|
{
|
|||
|
public int Id { get;private set; }
|
|||
|
public string FullName { get; private set; } = string.Empty;
|
|||
|
public DateTime BirthDate { get; private set; }
|
|||
|
public string PhoneNumber { get; private set; } = string.Empty;
|
|||
|
public ClientSocialStatus ClientSocialStatus { get; private set; }
|
|||
|
|
|||
|
public static Client CreateEntity(int id, string fullName,
|
|||
|
DateTime birthDate, string phoneNumber, ClientSocialStatus clientSocialStatus)
|
|||
|
{
|
|||
|
return new Client
|
|||
|
{
|
|||
|
Id = id,
|
|||
|
FullName = fullName,
|
|||
|
BirthDate = birthDate,
|
|||
|
PhoneNumber = phoneNumber,
|
|||
|
ClientSocialStatus = clientSocialStatus
|
|||
|
};
|
|||
|
}
|
|||
|
|
|||
|
}
|