public PhotosController(IRinkRepository repo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig) { _cloudinaryConfig = cloudinaryConfig; _mapper = mapper; _repo = repo; // Create the cloudinary account per the docs. Account acc = new Account( _cloudinaryConfig.Value.CloudName, _cloudinaryConfig.Value.ApiKey, _cloudinaryConfig.Value.ApiSecret ); _cloudinary = new Cloudinary(acc); }
public UsersController(IRinkRepository repo, IMapper mapper) { this._mapper = mapper; this._repo = repo; }
public MessagesController(IRinkRepository repo, IMapper mapper) { _mapper = mapper; _repo = repo; }