23 lines
493 B
C#
Raw Normal View History

2024-11-13 23:20:06 +04:00
using GasStation.Entities.Enums;
namespace GasStation.Entities;
public class Product
{
public int Id { get; private set; }
public int ProductCost { get; private set; }
2024-11-13 23:20:06 +04:00
2024-11-15 18:27:06 +04:00
public ProductType ProductType { get; private set; }
public static Product CreateProduct(int id, int productCost, ProductType productType)
2024-11-13 23:20:06 +04:00
{
return new Product
{
Id = id,
ProductCost = productCost,
2024-11-15 18:27:06 +04:00
ProductType = productType
2024-11-13 23:20:06 +04:00
};
}
}