Ejemplo n.º 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));
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public ProductsController(IMyAppRepository repository, ILogger <ProductsController> logger)
 {
     _repository = repository;
     _logger     = logger;
 }
Ejemplo n.º 4
0
 public AppController(IMailService mailService, IMyAppRepository repository)
 {
     _mailService = mailService;
     _repository  = repository;
 }
Ejemplo n.º 5
0
 public UsersController(IMyAppRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }
Ejemplo n.º 6
0
 public StatesController(IMyAppRepository myAppRepository, IMapper mapper)
 {
     _myAppRepository = myAppRepository ?? throw new ArgumentNullException(nameof(myAppRepository));
     _mapper          = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Ejemplo n.º 7
0
 public OrderItemsController(IMyAppRepository repository, ILogger <OrderItemsController> logger, IMapper mapper)
 {
     _repository = repository;
     _logger     = logger;
     _mapper     = mapper;
 }
Ejemplo n.º 8
0
 public DistrictsController(IMyAppRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }