Esempio n. 1
0
        public PhotosController(IAppRepostitory repostitory, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _appRepository    = repostitory;
            _mapper           = mapper;
            _cloudinaryConfig = cloudinaryConfig;
            Account account = new Account(this._cloudinaryConfig.Value.CloudName, this._cloudinaryConfig.Value.ApiKey, this._cloudinaryConfig.Value.ApiSecret);

            _cloudinary = new Cloudinary(account);
        }
Esempio n. 2
0
 public CitiesController(IAppRepostitory repostitory, IMapper mapper)
 {
     _appRepository = repostitory;
     _mapper        = mapper;
 }