public ActionResult EditReview(int id, int reviewStar, string reviewDescription) { List <ReviewClass> review = ReviewClass.FindById(id); review[0].EditDescription(id, reviewDescription); review[0].EditStars(id, reviewStar); int restId = review[0].GetRestaurantId(); Dictionary <string, object> dick = new Dictionary <string, object>(); List <RestaurantClass> restaurantList = RestaurantClass.FindById(restId); List <ReviewClass> reviewList = ReviewClass.GetAllReviewsByRestaurantId(restId); dick.Add("restaurant", restaurantList); dick.Add("review", reviewList); return(View("ShowReview", dick)); }
public ActionResult ReviewEdit(int id) { List <ReviewClass> findReview = ReviewClass.FindById(id); return(View("ReviewEdit", findReview)); }