27 lines
600 B
C#
27 lines
600 B
C#
namespace GasStation.Entities;
|
|
|
|
public class Supply
|
|
{
|
|
public int Id { get; private set; }
|
|
|
|
public int SupplierID { get; private set; }
|
|
|
|
public int ProductID { get; private set; }
|
|
|
|
public int Count { get; private set; }
|
|
|
|
public DateTime SupplyDate { get; private set; }
|
|
|
|
public static Supply CreateSupply(int id, int supplierID, int productID, int count)
|
|
{
|
|
return new Supply
|
|
{
|
|
Id = id,
|
|
SupplierID = supplierID,
|
|
ProductID = productID,
|
|
Count = count,
|
|
SupplyDate = DateTime.Now
|
|
};
|
|
}
|
|
}
|