コード例 #1
0
 public ActionResult Edit([Bind(Include = "Id,Title,Description")] Project project)
 {
     if (ModelState.IsValid)
     {
         ProjectHelper.EditProject(project);
         db.SaveChanges();
         return(Redirect("~/Manage/index"));
     }
     return(View(project));
 }
コード例 #2
0
 public ActionResult Edit(int?id, string name)
 {
     ProjectHelper.EditProject(id, name);
     return(RedirectToAction("Index", "Manage"));
 }