ISEbd-22_Rozhkov.I.E._Simple/GasStation/Entities/Gasman.cs
2024-12-02 14:38:24 +04:00

26 lines
591 B
C#

using GasStation.Entities.Enums;
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 Post Post { get; private set; }
public static Gasman CreateGasman(int id, string gasmanName, string phoneNumber, Post post)
{
return new Gasman
{
Id = id,
GasmanName = gasmanName,
PhoneNumber = phoneNumber,
Post = post
};
}
}