23 lines
627 B
C#
23 lines
627 B
C#
using FuelAndLubricants.Entities.Enums;
|
|
|
|
namespace FuelAndLubricants.Entities;
|
|
|
|
public class Fuel_And_Lubricants
|
|
{
|
|
public int Fuel_ID { get; private set; }
|
|
public Fuel_Type Fuel_Type { get; private set; }
|
|
public float Price_Per_Liter { get; private set; }
|
|
public float Amount { get; private set; }
|
|
|
|
public static Fuel_And_Lubricants CreateEntity(int fuel_id, Fuel_Type type, float price, float amount)
|
|
{
|
|
return new Fuel_And_Lubricants
|
|
{
|
|
Fuel_ID = fuel_id,
|
|
Fuel_Type = type,
|
|
Price_Per_Liter = price,
|
|
Amount = amount
|
|
};
|
|
}
|
|
}
|