2024-12-24 22:02:09 +04:00

23 lines
688 B
C#

using ProjectFuel.Entities.Enums;
namespace ProjectFuel.Entities;
public class Driver
{
public int Driver_ID { get; private set; }
public string Firstname { get; private set; } = string.Empty;
public string Secondname { get; private set; } = string.Empty;
public Driver_License Driver_License { get; private set; }
public static Driver CreateEntity(int driver_ID, string firstname, string secondname, Driver_License license)
{
return new Driver
{
Driver_ID = driver_ID,
Firstname = firstname ?? string.Empty,
Secondname = secondname ?? string.Empty,
Driver_License = license
};
}
}