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)); }
public ActionResult Edit(int?id, string name) { ProjectHelper.EditProject(id, name); return(RedirectToAction("Index", "Manage")); }