Esempio n. 1
0
 public MovieController(IMapper mapper, ICacheService cacheService, IMovieService service, IMovieGenreService movieGenreService, IMoviePersonService moviePersonService, IMoviePlotKeywordService moviePlotKeywordService) : base(mapper, cacheService, service)
 {
     _mapper                  = mapper;
     _cacheService            = cacheService;
     _service                 = service;
     _movieGenreService       = movieGenreService;
     _moviePersonService      = moviePersonService;
     _moviePlotKeywordService = moviePlotKeywordService;
 }
Esempio n. 2
0
 public MoviePersonController(IMoviePersonService service, IMapper mapper)
 {
     this.service = service ?? throw new ArgumentNullException(nameof(service));
     this.mapper  = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Esempio n. 3
0
        private readonly IMoviePersonService _moviePersonService; //injection

        public MoviePersonController(IMoviePersonService moviePersonService)
        {
            _moviePersonService = moviePersonService;
        }