public ActionResult Create(Menu model) { try { // TODO: Add update logic here if (ModelState.IsValid) { var dao = new MenuDao(); var result = dao.Create(model); return(RedirectToAction("Index")); } return(RedirectToAction("Index")); } catch { return(View()); } }