public PhotosController(IDatingRepositary 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);
        }
Beispiel #2
0
 public MessagesController(IDatingRepositary repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }
 public UsersController(IDatingRepositary Repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = Repo;
 }