コード例 #1
0
ファイル: ItemService.cs プロジェクト: Salah1796/OrmanTaskAPi
        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
ファイル: Item.cs プロジェクト: rana-035/Luxorna-BackEnd
        public ItemEditViewModel Update(ItemEditViewModel _ResturantMenuItem)
        {
            Item ResturantMenuItem = ItemRepo.Add(_ResturantMenuItem.ToModel());

            UnitOfWork.commit();
            return(ResturantMenuItem.ToEditViewModel());
        }
コード例 #4
0
ファイル: Item.cs プロジェクト: rana-035/Luxorna-BackEnd
 public void Remove(ItemEditViewModel resturantMenuItem)
 {
     ItemRepo.Remove(resturantMenuItem.ToModel());
     UnitOfWork.commit();
 }