public PhotosController(IConnectHubRepository connectHubRepo, IMapper mapper, IOptions <CloudinarySettings> options) { _connectHubRepo = connectHubRepo; _mapper = mapper; _options = options; Account acc = new Account( _options.Value.CloudName, _options.Value.ApiKey, _options.Value.ApiSecret ); _cloudinary = new Cloudinary(acc); }
public UsersController(IConnectHubRepository hubRepo, IMapper mapper) { _mapper = mapper; _hubRepo = hubRepo; }
public MessagesController(IConnectHubRepository repo, IMapper mapper) { _mapper = mapper; _repo = repo; }