public ActionResult Edit(Restaurant restaurant) { if (ModelState.IsValid) { db.EditRestaurant(restaurant); return(RedirectToAction("Details", new { id = restaurant.Id })); } return(View(restaurant)); }
public ActionResult Edit(Restaurant restaurant) { if (ModelState.IsValid) { db.EditRestaurant(restaurant); return(RedirectToAction("Details", new { id = restaurant.Id })); } return(View(restaurant)); }