예제 #1
0
 public ActionResult Edit(Cuisine cuisine)
 {
     _db.Entry(cuisine).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult Edit(Restaurant restaurant)
 {
     _db.Entry(restaurant).State = EntityState.Modified;
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }