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