Beispiel #1
0
        public PhotosController(ICourseAppRepository repo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _cloudinaryConfig = cloudinaryConfig;
            _repo             = repo;
            _mapper           = mapper;

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

            _cloudinary = new Cloudinary(acc);
        }
 public MessagesController(ICourseAppRepository repo, IMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }
 public UsersController(ICourseAppRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }