Пример #1
0
        public long CreateMeter(MeterData meterData, UserOpMap userOpMap)
        {
            DAL_Meter         dAL_Meter         = new DAL_Meter();
            Meter             meter             = new Meter();
            DailyMeterReading dailyMeterReading = new DailyMeterReading();

            meter.Name        = meterData.Name;
            meter.Description = meterData.Description;
            meter.FuelTypeId  = meterData.FuelTypeID;
            dailyMeterReading.DayStartReading = meterData.DayStartReading;
            dailyMeterReading.DayEndReading   = meterData.DayEndReading;
            return(dAL_Meter.CreateMeter(meter, dailyMeterReading, userOpMap));
        }
Пример #2
0
        public List <Fuel> GetFuelList()
        {
            DAL_Meter dAL_Meter = new DAL_Meter();

            return(dAL_Meter.GetFuelList());
        }
Пример #3
0
        public List <DailyMeterReading> GetDailyMeterReading()
        {
            DAL_Meter dAL_Meter = new DAL_Meter();

            return(dAL_Meter.GetDailyMeterReading());
        }
Пример #4
0
        public Fuel GetFuelByFuelID(int fuelID)
        {
            DAL_Meter dAL_Meter = new DAL_Meter();

            return(dAL_Meter.GetFuelByFuelID(fuelID));
        }
Пример #5
0
        public List <Meter> GetMeterList()
        {
            DAL_Meter dAL_Meter = new DAL_Meter();

            return(dAL_Meter.GetMeterList());
        }