public IEnumerable<BookType> GetSuggestionsForGuest() { IRecommendationEngine engine = new RecommendationForGuest(ServiceLocator, null); engine.OrderInformationsService = this.OrderInformationService; engine.BooksInformationService = this.BooksInformationService; engine.SuggestionCache = SuggestionCache; IEnumerable<long> resultList = engine.GenerateRecommendation(); return toIEnumerableBookType(resultList); }
public IEnumerable <BookType> GetSuggestionsForGuest() { IRecommendationEngine engine = new RecommendationForGuest(ServiceLocator, null); engine.OrderInformationsService = this.OrderInformationService; engine.BooksInformationService = this.BooksInformationService; engine.SuggestionCache = SuggestionCache; IEnumerable <long> resultList = engine.GenerateRecommendation(); return(toIEnumerableBookType(resultList)); }