public PhotoController(IDatingRepsitory repo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig) { _repo = repo; _mapper = mapper; _cloudinaryConfig = cloudinaryConfig; Account acc = new Account( cloudinaryConfig.Value.CloudName, cloudinaryConfig.Value.ApiKey, cloudinaryConfig.Value.ApiSecret ); _cloudinary = new Cloudinary(acc); }
public UsersController(IDatingRepsitory repo, IMapper mapper) { _repo = repo; _mapper = mapper; }