public ActionResult Create(Cuisine cuisine) { _db.Cuisines.Add(cuisine); _db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Create(Restaurant restaurant) { _db.Restaurants.Add(restaurant); _db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Create(Review review) { _db.Reviews.Add(review); _db.SaveChanges(); return(RedirectToAction("Details", "Restaurants", new { id = review.RestaurantId })); }