public ActionResult Edit(MenuItem menuItem) { _db.Entry(menuItem).State = EntityState.Modified; _db.SaveChanges(); int restaurantId = menuItem.RestaurantId; return(RedirectToAction("Details", "Restaurant", restaurantId)); }
public ActionResult Edit(Restaurant restaurant) { _db.Entry(restaurant).State = EntityState.Modified; _db.SaveChanges(); return(RedirectToAction("Index")); }