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