public ActionResult Edit(ProjectModel pm) { if (pb.ModiftyProject(pm)) { return(RedirectToAction("index", "Project")); } else { ModelState.AddModelError("Error", "修改项目失败!"); var temppm = pb.GetProjectByID(pm.ID); return(View(temppm)); } }