示例#1
0
        public Core.Domain.Tank Find(int id)
        {
            IRepository = new TankRepository();
            var obj = IRepository.Find(id);

            return(obj);
        }
示例#2
0
 public void Update(Core.Domain.Tank model)
 {
     if (model == null)
     {
         throw new ArgumentNullException("model");
     }
     IRepository = new TankRepository();
     IRepository.Update(model);
 }
示例#3
0
 public void InsertTank(Core.Domain.Tank model)
 {
     if (model == null)
     {
         throw new ArgumentNullException("group");
     }
     IRepository = new TankRepository();
     IRepository.Insert(model);
 }
示例#4
0
 public List <TankAsofConsumption> GetTotalConsumption()
 {
     IRepository = new TankRepository();
     return(IRepository.GetTotalConsumption());
 }
示例#5
0
 public List <Core.Domain.Tank> GetList()
 {
     IRepository = new TankRepository();
     return(IRepository.GetList());
 }