public PhotosController(IMeetPeopleRepository repo, IMapper mapper, IOptions <CloudinarySettings> options)
        {
            _options = options;
            _mapper  = mapper;
            _repo    = repo;

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

            _cloudinary = new Cloudinary(acc);
        }
Exemple #2
0
 public UsersController(IMeetPeopleRepository repo, IMapper mapper, IHubContext <MessageHub> hub)
 {
     _hub    = hub;
     _mapper = mapper;
     _repo   = repo;
 }