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

21 lines
444 B
C#
Raw Normal View History

using System.ComponentModel;
namespace GasStation.Entities;
2024-11-13 23:20:06 +04:00
public class Supplier
{
public int Id { get; private set; }
[DisplayName("Имя поставщика")]
public string SupplierName { get; private set; } = string.Empty;
2024-11-13 23:20:06 +04:00
public static Supplier CreateSupplier(int id, string supplierName)
2024-11-13 23:20:06 +04:00
{
return new Supplier
{
Id = id,
SupplierName = supplierName
2024-11-13 23:20:06 +04:00
};
}
}