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; }
public MoviePersonController(IMoviePersonService service, IMapper mapper) { this.service = service ?? throw new ArgumentNullException(nameof(service)); this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
private readonly IMoviePersonService _moviePersonService; //injection public MoviePersonController(IMoviePersonService moviePersonService) { _moviePersonService = moviePersonService; }