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