public ActionResult Edit(Restaurant restaurant) { _db.Entry(restaurant).State = EntityState.Modified; _db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit(Cuisine cuisine) { _db.Entry(cuisine).State = EntityState.Modified; // need to change state of entry so that Entity knows to looks for changes _db.SaveChanges(); return(RedirectToAction("Index")); }