public ActionResult Edit([Bind(Include = "ID,CName,CDifficulty")] Chore chore) { if (ModelState.IsValid) { db.Entry(chore).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(chore)); }
public ActionResult Edit([Bind(Include = "ID,FirstName,LastName")] Roommate roommate) { if (ModelState.IsValid) { db.Entry(roommate).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(roommate)); }