Пример #1
0
        public PhotosController(IDatingRepositry 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(IDatingRepositry repo, IMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }
 public MessagesController(IDatingRepositry repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }
Пример #4
0
 public UsersController(IDatingRepositry repo, IMapper mapper)
 {
     this._mapper = mapper;
     this._repo   = repo;
 }