30 lines
745 B
C#
30 lines
745 B
C#
using GasStation.Entities.Enums;
|
|
using System.ComponentModel;
|
|
|
|
namespace GasStation.Entities;
|
|
|
|
public class Gasman
|
|
{
|
|
public int Id { get; private set; }
|
|
|
|
[DisplayName("Имя заправщика")]
|
|
public string GasmanName { get; private set; } = string.Empty;
|
|
|
|
[DisplayName("Телефон")]
|
|
public string PhoneNumber { get; private set; } = string.Empty;
|
|
|
|
[DisplayName("Должность")]
|
|
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
|
|
};
|
|
}
|
|
}
|