2024-12-02 14:38:24 +04:00
|
|
|
|
namespace GasStation.Entities;
|
|
|
|
|
|
|
|
|
|
public class ProductSelling
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; private set; }
|
|
|
|
|
|
|
|
|
|
public int ProductID { get; private set; }
|
|
|
|
|
|
2024-12-21 15:34:40 +04:00
|
|
|
|
public string ProductName { get; private set; } = string.Empty;
|
|
|
|
|
|
2024-12-02 14:38:24 +04:00
|
|
|
|
public int Count { get; private set; }
|
|
|
|
|
|
|
|
|
|
public static ProductSelling CreateSelling(int id, int productID, int count)
|
|
|
|
|
{
|
|
|
|
|
return new ProductSelling
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
|
|
|
|
ProductID = productID,
|
|
|
|
|
Count = count
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|