public ActionResult Edit(MenuType model) { if (ModelState.IsValid) { var dao = new MenuDetailDao(); if (!string.IsNullOrEmpty(model.Name)) { var result = dao.Update(model); if (result) { return(RedirectToAction("Index", "MenuDetail")); } else { ModelState.AddModelError("", "Cap nhap thanh cong"); } } } return(View()); }