public ActionResult DeleteConfirmed(int id) { try { categoryData.Delete(id); } catch (Exception ex) { log.Error("Could't delete a category from the Database", ex); return(View("ErrorRetriveData")); } return(RedirectToAction("Index")); }
// DELETE: api/Categories/5 public void Delete(int id) { categoryData.Delete(id); }
// DELETE: api/Areas/5 public void Delete(int id) { areaData.Delete(id); }