Exemple #1
0
        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);
        }
Exemple #2
0
 public MessagesController(IMuzykRepository repo, IMapper mapper)
 {
     this._repo   = repo;
     this._mapper = mapper;
 }
Exemple #3
0
 public UsersController(IMuzykRepository repo, IMapper mapper)
 {
     _repo        = repo;
     this._mapper = mapper;
 }