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