예제 #1
0
 public CitiesController(IMayorInfoRepository cityInfoRepository,
                         IMapper mapper)
 {
     _cityInfoRepository = cityInfoRepository ??
                           throw new ArgumentNullException(nameof(cityInfoRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
 }
예제 #2
0
 public MayorsController(IMayorInfoRepository mayorInfoRepository,
                         IMapper mapper)
 {
     _mayorInfoRepository = mayorInfoRepository ??
                            throw new ArgumentNullException(nameof(mayorInfoRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
 }
 public PointsOfInterestController(ILogger <PointsOfInterestController> logger,
                                   IMailService mailService, IMayorInfoRepository cityInfoRepository,
                                   IMapper mapper)
 {
     _logger = logger ??
               throw new ArgumentNullException(nameof(logger));
     _mailService = mailService ??
                    throw new ArgumentNullException(nameof(mailService));
     _cityInfoRepository = cityInfoRepository ??
                           throw new ArgumentNullException(nameof(cityInfoRepository));
     _mapper = mapper ??
               throw new ArgumentNullException(nameof(mapper));
 }