ISEbd-22_Rozhkov.I.E._Simple/GasStation/Entities/Product.cs
2024-11-15 18:27:06 +04:00

26 lines
558 B
C#

using GasStation.Entities.Enums;
namespace GasStation.Entities;
public class Product
{
public int Id { get; private set; }
public int Cost { get; private set; }
public Gasmen Gasmen { get; private set; }
public ProductType ProductType { get; private set; }
public static Product CreateProduct(int id, int cost ,Gasmen gasmen, ProductType productType)
{
return new Product
{
Id = id,
Cost = cost,
Gasmen = gasmen,
ProductType = productType
};
}
}