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


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

            _cloudinary = new Cloudinary(acc);
        }
Пример #2
0
 public MessagesControllers(IDatingRepositroy repo, IMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }
Пример #3
0
 public UsersController(IDatingRepositroy context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }