public ActionResult AddMenuType(tb_MenuType entity) { if (ModelState.IsValid) { long Id = Dao.InsertType(entity); return(RedirectToAction("EditMenuType", "Menus", new { Id = Id })); } return(View(entity)); }