Пример #1
0
 public CountiesController(ILogger <CountiesController> logger,
                           IMailService mailService, IMyAppRepository myAppRepository, IMapper mapper)
 {
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
     _mailService     = mailService ?? throw new ArgumentNullException(nameof(mailService));
     _myAppRepository = myAppRepository ?? throw new ArgumentNullException(nameof(myAppRepository));
     _mapper          = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Пример #2
0
        public PhotosController(IMyAppRepository repo, IMapper mapper,
                                IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _cloudinaryConfig = cloudinaryConfig;
            _mapper           = mapper;
            _repo             = repo;

            Account acc = new Account(
                _cloudinaryConfig.Value.CloudName,
                _cloudinaryConfig.Value.ApiKey,
                _cloudinaryConfig.Value.ApiSecret
                );

            _cloudinary = new Cloudinary(acc);
        }
Пример #3
0
 public ProductsController(IMyAppRepository repository, ILogger <ProductsController> logger)
 {
     _repository = repository;
     _logger     = logger;
 }
Пример #4
0
 public AppController(IMailService mailService, IMyAppRepository repository)
 {
     _mailService = mailService;
     _repository  = repository;
 }
Пример #5
0
 public UsersController(IMyAppRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }
Пример #6
0
 public StatesController(IMyAppRepository myAppRepository, IMapper mapper)
 {
     _myAppRepository = myAppRepository ?? throw new ArgumentNullException(nameof(myAppRepository));
     _mapper          = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
 public OrderItemsController(IMyAppRepository repository, ILogger <OrderItemsController> logger, IMapper mapper)
 {
     _repository = repository;
     _logger     = logger;
     _mapper     = mapper;
 }
Пример #8
0
 public DistrictsController(IMyAppRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }