public Top3WebRestaurants() { Top3List = new List <WebRestaurant>(); var search = new SearchRestaurants(); var Top3Data = search.GetTopRestaurants(); foreach (var item in Top3Data) { Top3List.Add(WebDataConversion.RestaurantToWeb(item)); } }
public RestaurantAndReviews(int id) { var sr = new SearchRestaurants(); var TempRest = sr.GetRestaurant(id); var rr = new RetrieveReviews(); WebRest = WebDataConversion.RestaurantToWeb(TempRest); var rlist = rr.RetrieveReviewList(id); WebReviews = new List <WebReview>(); foreach (var item in rlist) { WebReviews.Add(WebDataConversion.ReviewToWeb(item)); } }