Beispiel #1
0
        public PhotosController(IdatingRepository 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);
        }
 public UsersController(IdatingRepository repo, IMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }
Beispiel #3
0
 public UsersController(IdatingRepository repo, IMapper mapper)
 {
     this._mapper = mapper;
     this._repo   = repo;
 }
Beispiel #4
0
 public MessagesController(IdatingRepository repository, IMapper mapper)
 {
     this._mapper     = mapper;
     this._repository = repository;
 }