public ActionResult Edit([Bind(Include = "ID,cardID,userID,reviewText")] Review review) { if (ModelState.IsValid) { db.Entry(review).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(review)); }
public ActionResult Edit([Bind(Include = "ID,cardID,userID,reviewText")] Review review) { if (ModelState.IsValid) { db.Entry(review).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(review)); }