public ActionResult Create(Category category) { try { // TODO: Add insert logic here bool saved = dal.Save(category); if (saved) { return(RedirectToAction("Index")); } return(View(category)); } catch { return(View()); } }
public ActionResult Create(Category category) { try { // TODO: Add insert logic here bool saved = dal.Save(category); if (saved) { return(RedirectToAction("Index")); } return(View(category)); } catch { return(View()); } }