23 lines
493 B
C#
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
|
|
};
|
|
}
|
|
}
|