public PhotosController(IMuzykRepository repo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig) { this._repo = repo; this._mapper = mapper; this._cloudinaryConfig = cloudinaryConfig; Account account = new Account( _cloudinaryConfig.Value.CloudName, _cloudinaryConfig.Value.ApiKey, _cloudinaryConfig.Value.ApiSecret ); _cloudinary = new Cloudinary(account); }
public MessagesController(IMuzykRepository repo, IMapper mapper) { this._repo = repo; this._mapper = mapper; }
public UsersController(IMuzykRepository repo, IMapper mapper) { _repo = repo; this._mapper = mapper; }