public ActionResult Delete(Category category) { try { // TODO: Add delete logic here bool deleted = dal.Delete(category); if (deleted) { return(RedirectToAction("Index")); } return(View(category)); } catch { return(View()); } }
public ActionResult Delete(Category category) { try { // TODO: Add delete logic here bool deleted = dal.Delete(category); if (deleted) { return(RedirectToAction("Index")); } return(View(category)); } catch { return(View()); } }