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)); }
public List <Fuel> GetFuelList() { DAL_Meter dAL_Meter = new DAL_Meter(); return(dAL_Meter.GetFuelList()); }
public List <DailyMeterReading> GetDailyMeterReading() { DAL_Meter dAL_Meter = new DAL_Meter(); return(dAL_Meter.GetDailyMeterReading()); }
public Fuel GetFuelByFuelID(int fuelID) { DAL_Meter dAL_Meter = new DAL_Meter(); return(dAL_Meter.GetFuelByFuelID(fuelID)); }
public List <Meter> GetMeterList() { DAL_Meter dAL_Meter = new DAL_Meter(); return(dAL_Meter.GetMeterList()); }