Пример #1
0
        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));
        }
Пример #2
0
        public List <DailyFuelCost> GetDailyFuelCost()
        {
            DAL_Fuel dAL_Fuel = new DAL_Fuel();

            return(dAL_Fuel.GetDailyFuelCost());
        }
Пример #3
0
        public List <Fuel> GetFuelList()
        {
            DAL_Fuel dAL_Fuel = new DAL_Fuel();

            return(dAL_Fuel.GetFuelList());
        }