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 }; } }