public ActionResult AddComment(int restaurantId, string comment) { Restaurant restaurant = Restaurant.Find(restaurantId); restaurant.AddComment(comment); return(RedirectToAction("Show", new { id = restaurantId })); }
public ActionResult AddComment(int restaurantId, string comment) { Restaurant restaurant = Restaurant.Find(restaurantId); restaurant.AddComment(comment); return(RedirectToAction("Show", new { id = restaurantId })); }