コード例 #1
0
        public List <MovieDto> GetSimilarMoviesToMovieId(int movieId)
        {
            Recommendation.Initialize(_uow);
            var movie         = _uow.MovieRepository.Get(movieId);
            var similarMovies = Recommendation.CompareMovieToMovie(movie);

            return(BusinessMapper.Mapper.Map <List <MovieDto> >(similarMovies));
        }