Esempio n. 1
0
 public AdminController(DataContext context, UserManager <User> userManager,
                        IDatingRepository repo,
                        IMapper mapper,
                        IPhotoManagerService photoService)
 {
     _userManager  = userManager;
     _context      = context;
     _repo         = repo;
     _mapper       = mapper;
     _photoService = photoService;
 }
        public PhotosController(IDatingRepository repo, IMapper mapper,
                                IOptions <CloudinarySettings> cloudinaryConfig,
                                IPhotoManagerService photoService)
        {
            _cloudinaryConfig = cloudinaryConfig;
            _mapper           = mapper;
            _repo             = repo;
            _photoService     = photoService;

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

            _cloudinary = new Cloudinary(acc);
        }
 public PhotoManagerController(
     IPhotoManagerService photo
     )
 {
     _photo = photo;
 }