public ActionResult EditMenuType(tb_MenuType entity) { if (ModelState.IsValid) { Dao.UpdateType(entity); } return(View(entity)); }