Exemple #1
0
 public MovieService(IUnitOfWork unit, IMapper mapper, IMovieRecommender movieRecommender)
 {
     _unit             = unit;
     _mapper           = mapper;
     _movieRepo        = unit.Movies;
     _screeningRepo    = unit.Screenings;
     _genreMovieRepo   = unit.Repository <GenreMovie, int>();
     _movieRecommender = movieRecommender;
 }
Exemple #2
0
 public UserController(ILogger <UserController> logger, ImdbScraper imdbScraper, ImdbDbContext dbContext, IMovieRecommender movieRecommender)
 {
     _logger           = logger;
     _dbContext        = dbContext;
     _movieRecommender = movieRecommender;
 }
 public MovieRecommenderController(IMovieRecommender recommenderService)
 {
     _recommenderService = recommenderService;
 }