27 lines
785 B
C#
27 lines
785 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ProjectPolyclinic.Entities
|
|
{
|
|
public class Patient
|
|
{
|
|
public int Id { get;private set; }
|
|
public string First_Name { get; private set; } = string.Empty;
|
|
public string Last_Name { get; private set; } = string.Empty;
|
|
public DateTime Date_Of_Birth { get; private set; }
|
|
public static Patient CreateEntity(int id, string first_Name, string last_Name, DateTime date_of_birth)
|
|
{
|
|
return new Patient
|
|
{
|
|
Id = id,
|
|
First_Name = first_Name,
|
|
Last_Name = last_Name,
|
|
Date_Of_Birth = date_of_birth
|
|
};
|
|
}
|
|
}
|
|
}
|