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

23 lines
493 B
C#

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