21 lines
477 B
C#
21 lines
477 B
C#
|
namespace GasStation.Entities;
|
|||
|
|
|||
|
public class Gasman
|
|||
|
{
|
|||
|
public int Id { get; private set; }
|
|||
|
|
|||
|
public string GasmanName { get; private set; } = string.Empty;
|
|||
|
|
|||
|
public string PhoneNumber { get; private set; } = string.Empty;
|
|||
|
|
|||
|
public static Gasman CreateGasman(int id, string gasmanName, string phoneNumber)
|
|||
|
{
|
|||
|
return new Gasman
|
|||
|
{
|
|||
|
Id = id,
|
|||
|
GasmanName = gasmanName,
|
|||
|
PhoneNumber = phoneNumber
|
|||
|
};
|
|||
|
}
|
|||
|
}
|