23 lines
499 B
C#
23 lines
499 B
C#
namespace GasStation.Entities;
|
|
|
|
public class ProductSelling
|
|
{
|
|
public int Id { get; private set; }
|
|
|
|
public int ProductID { get; private set; }
|
|
|
|
public string ProductName { get; private set; } = string.Empty;
|
|
|
|
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
|
|
};
|
|
}
|
|
}
|