예제 #1
0
 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));
 }