示例#1
0
        public ItemEditViewModel Update(ItemEditViewModel P)
        {
            Item PP = ItemRepo.Update(P.ToModel());

            unitOfWork.Commit();
            return(PP.ToEditableViewModel());
        }
示例#2
0
        public ItemEditViewModel Update(ItemEditViewModel ItemEditViewModel)
        {
            Item Item = ItemRepo.Update(ItemEditViewModel.ToModel());

            unitOfWork.commit();
            return(Item.ToEditableViewModel());
        }
示例#3
0
        public ItemEditViewModel Update(ItemEditViewModel _ResturantMenuItem)
        {
            Item ResturantMenuItem = ItemRepo.Add(_ResturantMenuItem.ToModel());

            UnitOfWork.commit();
            return(ResturantMenuItem.ToEditViewModel());
        }
示例#4
0
 public void Remove(ItemEditViewModel resturantMenuItem)
 {
     ItemRepo.Remove(resturantMenuItem.ToModel());
     UnitOfWork.commit();
 }