public FilmListController( ILogger <FilmListController> logger, FilmListerContext filmListerContext, FilmListMapper filmListMapper, FilmService filmService) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.filmListerContext = filmListerContext ?? throw new ArgumentNullException(nameof(filmListerContext)); this.filmListMapper = filmListMapper ?? throw new ArgumentNullException(nameof(filmListMapper)); this.filmService = filmService ?? throw new ArgumentNullException(nameof(filmService)); }
public FilmRankController(FilmRankMapper filmRankMapper, FilmListMapper filmListMapper, FilmService filmService) { this.filmRankMapper = filmRankMapper ?? throw new ArgumentNullException(nameof(filmRankMapper)); this.filmListMapper = filmListMapper ?? throw new ArgumentNullException(nameof(filmListMapper)); this.filmService = filmService ?? throw new ArgumentNullException(nameof(filmService)); }