public List <ReviewerInfo> GetAllReviewsForARestaurant(int restaurantId) { var fullList = GetAllReviewerInfo(); var allReviews = new AllReviewsSingleRestauraunt(); return(allReviews.GetAllReviews(restaurantId, fullList)); }
public Dictionary <ReviewerInfo, RestaurantInfo> AllReviewsForARestauraunt(string name) { var restaurants = SearchByName(name); var reviews = reviewerRepository.getAll(); var allReviews = new AllReviewsSingleRestauraunt(); return(allReviews.GetAllReviews(name, restaurants, reviews)); }