예제 #1
0
        public ActionResult Delete(CategoryDTO dto)
        {
            OpCategoryDelete delete = new OpCategoryDelete();

            delete.IdzaBrisanje = dto.Id;
            var result = _manager.ExecuteOperation(delete);

            return(RedirectToAction("Index"));
        }
예제 #2
0
 public ActionResult Delete(CategoryDto dto)
 {
     try
     {
         // TODO: Add delete logic here
         OpCategoryDelete delete = new OpCategoryDelete();
         delete.Id = dto.Id;
         var result = _manager.ExecuteOperation(delete);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View(dto));
     }
 }