public ActionResult Delete(CategoryDTO dto) { OpCategoryDelete delete = new OpCategoryDelete(); delete.IdzaBrisanje = dto.Id; var result = _manager.ExecuteOperation(delete); return(RedirectToAction("Index")); }
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)); } }