ISEbd-22_Rozhkov.I.E._Simple/GasStation/Entities/Selling.cs
2024-11-13 23:20:06 +04:00

27 lines
606 B
C#

namespace GasStation.Entities;
public class Selling
{
public int Id { get; private set; }
public int GasmanId { get; private set; }
public int ProductID { get; private set; }
public int Count { get; private set; }
public DateTime SellingDateTime { get; private set; }
public static Selling CreateSelling(int id, int gasmanId, int productID, int count)
{
return new Selling
{
Id = id,
GasmanId = gasmanId,
ProductID = productID,
Count = count,
SellingDateTime = DateTime.Now
};
}
}