public PhotosController(IMapUserRepository 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);
        }
示例#2
0
 public UsersController(IMapUserRepository repo, IMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }