public ActionResult Edit(TeacherModel tm) { if (tb.ModifyTeacher(tm)) { return(RedirectToAction("Index")); } else { ModelState.AddModelError("Error", "修改教师信息失几!"); return(View(tm)); } }