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