public long CreateFuel(FuelData fuelData, UserOpMap userOpMap) { DAL_Fuel dAL_Fuel = new DAL_Fuel(); Fuel fuel = new Fuel(); DailyFuelCost dailyFuelCost = new DailyFuelCost(); fuel.Name = fuelData.Name; fuel.Description = fuelData.Description; fuel.Type = fuelData.Type; dailyFuelCost.CostPerLiter = fuelData.CostPerLiter; return(dAL_Fuel.CreateFuel(fuel, dailyFuelCost, userOpMap)); }
public List <DailyFuelCost> GetDailyFuelCost() { DAL_Fuel dAL_Fuel = new DAL_Fuel(); return(dAL_Fuel.GetDailyFuelCost()); }
public List <Fuel> GetFuelList() { DAL_Fuel dAL_Fuel = new DAL_Fuel(); return(dAL_Fuel.GetFuelList()); }