public MatchOddsController(ILogger <MatchOddsController> logger, IMatchInfoRepository matchInfoRepository, IMapper mapper) { _logger = logger ?? throw new ArgumentException(nameof(logger)); _matchInfoRepository = matchInfoRepository ?? throw new ArgumentException(nameof(matchInfoRepository)); _mapper = mapper ?? throw new ArgumentException(nameof(mapper)); }
public MatchesController(IMatchInfoRepository matchInfoRepository, IMapper mapper) { _matchInfoRepository = matchInfoRepository ?? throw new ArgumentException(nameof(matchInfoRepository)); _mapper = mapper ?? throw new ArgumentException(nameof(mapper)); }