Пример #1
0
        public PhotosController(IAudibleRepository repo, IMapper mapper
                                , IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _cloudinaryConfig = cloudinaryConfig;
            _mapper           = mapper;
            _repo             = repo;

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

            _cloudinary = new Cloudinary(acc);
        }
Пример #2
0
 public MessagesController(IAudibleRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }
Пример #3
0
 public ReviewsController(IAudibleRepository repo, IMapper mapper, UserManager <User> userManager)
 {
     _mapper      = mapper;
     _repo        = repo;
     _userManager = userManager;
 }
Пример #4
0
 public SessionController(IAudibleRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }
Пример #5
0
 public PaymentController(IAudibleRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }