Exemple #1
0
        public PhotoController(IDatingReposatry repo, IMapper mapper,
                               IOptions <CloudinarySetting> cloudinaryConfig)
        {
            this.repo             = repo;
            this.mapper           = mapper;
            this.cloudinaryConfig = cloudinaryConfig;
            Account acc = new Account(
                cloudinaryConfig.Value.cloudName,
                cloudinaryConfig.Value.ApiKey,
                cloudinaryConfig.Value.ApiSecret
                );

            _cloudinary = new Cloudinary(acc);
        }
Exemple #2
0
 public UsersController(IDatingReposatry repo, IMapper mapper)
 {
     this.repo   = repo;
     this.mapper = mapper;
 }