21 lines
430 B
C#
21 lines
430 B
C#
|
namespace GasStation.Entities;
|
|||
|
|
|||
|
public class ProductSelling
|
|||
|
{
|
|||
|
public int Id { get; private set; }
|
|||
|
|
|||
|
public int ProductID { get; private set; }
|
|||
|
|
|||
|
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
|
|||
|
};
|
|||
|
}
|
|||
|
}
|