public ActionResult Create(MenuType model) { if (ModelState.IsValid) { var dao = new MenuDetailDao(); long id = dao.Insert(model); if (id > 0) { return(RedirectToAction("Index", "MenuDetail")); } else { ModelState.AddModelError("", "Them menutype thanh cong"); } } return(View("Index")); }