public ActionResult Edit([Bind(Include = "ProjectId,ProjectName,ProjectDescription,ProjectScreenshot,ProjectGitHub")] Project project) { if (ModelState.IsValid) { db.Entry(project).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(project)); }
public ActionResult Edit(Portfolio portfolio) { if (ModelState.IsValid) { db.Entry(portfolio).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(portfolio)); }