Inheritance: IRecommendationEngine
Exemplo n.º 1
0
        public IEnumerable <BookType> GetSuggestionsForUser(long userID, long categoryID)
        {
            IRecommendationEngine engine = new RecommendationForUser(ServiceLocator, userID, categoryID);

            engine.OrderInformationsService = this.OrderInformationService;
            engine.BooksInformationService  = this.BooksInformationService;
            IEnumerable <long> resultList = engine.GenerateRecommendation();

            return(toIEnumerableBookType(resultList));
        }
Exemplo n.º 2
0
 public IEnumerable<BookType> GetSuggestionsForUser(long userID)
 {
     IRecommendationEngine engine = new RecommendationForUser(ServiceLocator, userID, null);
     engine.OrderInformationsService = this.OrderInformationService;
     engine.BooksInformationService = this.BooksInformationService;
     IEnumerable<long> resultList = engine.GenerateRecommendation();
     return toIEnumerableBookType(resultList);
 }