public Core.Domain.Tank Find(int id) { IRepository = new TankRepository(); var obj = IRepository.Find(id); return(obj); }
public void Update(Core.Domain.Tank model) { if (model == null) { throw new ArgumentNullException("model"); } IRepository = new TankRepository(); IRepository.Update(model); }
public void InsertTank(Core.Domain.Tank model) { if (model == null) { throw new ArgumentNullException("group"); } IRepository = new TankRepository(); IRepository.Insert(model); }
public List <TankAsofConsumption> GetTotalConsumption() { IRepository = new TankRepository(); return(IRepository.GetTotalConsumption()); }
public List <Core.Domain.Tank> GetList() { IRepository = new TankRepository(); return(IRepository.GetList()); }