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)); }
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); }
public ProductsController(IMyAppRepository repository, ILogger <ProductsController> logger) { _repository = repository; _logger = logger; }
public AppController(IMailService mailService, IMyAppRepository repository) { _mailService = mailService; _repository = repository; }
public UsersController(IMyAppRepository repo, IMapper mapper) { _mapper = mapper; _repo = repo; }
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; }
public DistrictsController(IMyAppRepository repo, IMapper mapper) { _mapper = mapper; _repo = repo; }