ISEbd-22_Rozhkov.I.E._Simple/GasStation/Entities/Gasman.cs

21 lines
477 B
C#
Raw Normal View History

2024-11-13 23:20:06 +04:00
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
};
}
}