Beispiel #1
0
        public SpacesPhotoController(IMapper mapper, ILineUpRepository repository, IOptions <CloudinarySettings> cloudinaryConfig, IOptionsSnapshot <PhotoSettings> options)
        {
            _cloudinaryConfig = cloudinaryConfig;
            _repository       = repository;
            _mapper           = mapper;
            _photoSettings    = options.Value;

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

            _cloudinary = new Cloudinary(acc);
        }
Beispiel #2
0
 public LineUpController(ILineUpRepository lineUpRepository, IMapper mapper, IUserRepository userRepository)
 {
     _userRepository   = userRepository;
     _lineUpRepository = lineUpRepository;
     _mapper           = mapper;
 }