Exemplo n.º 1
0
        public PhotosController(IDatingREpository repo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryOptions)
        {
            this.repo              = repo;
            this.mapper            = mapper;
            this.cloudinaryOptions = cloudinaryOptions;

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

            cloudinary = new Cloudinary(acc);
        }
Exemplo n.º 2
0
        public PhotosController(IDatingREpository 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);
        }
Exemplo n.º 3
0
 public UsersController(IDatingREpository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }
Exemplo n.º 4
0
 public UsersController(IDatingREpository repo, IMapper mapper)
 {
     this.repo   = repo;
     this.mapper = mapper;
 }
Exemplo n.º 5
0
 public MessageController(IDatingREpository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }