/// <inheritdoc /> public CharactersController(IMarvelHttpService marvelService, IMarvelDatabaseService marvelDatabase, ILogger <CharactersController> logger) { _marvelService = marvelService ?? throw new ArgumentNullException(nameof(marvelService)); _marvelDatabase = marvelDatabase ?? throw new ArgumentNullException(nameof(marvelDatabase)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public ComicsController(ILogger <ComicsController> logger, IMarvelHttpService marvelService) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _marvelService = marvelService ?? throw new ArgumentNullException(nameof(marvelService)); }