public MessagesController(UserManager <AppUser> userManager, IUserRepository userRepository, IMessageRepository messageRepository, IMapper mapper,
                           IClassifiedAdsRepository classifiedAdsRepository)
 {
     _userManager             = userManager;
     _userRepository          = userRepository;
     _messageRepository       = messageRepository;
     _mapper                  = mapper;
     _classifiedAdsRepository = classifiedAdsRepository;
 }
        public PhotosController(IClassifiedAdsRepository classifiedAdsRepo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _classifiedAdsRepo = classifiedAdsRepo;
            _cloudinaryConfig  = cloudinaryConfig;
            _mapper            = mapper;

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

            _cloudinary = new Cloudinary(acc);
        }
Example #3
0
        public PhotosController(UserManager <AppUser> userManager, IClassifiedAdsRepository classifiedAdsRepo, IMapper mapper,
                                IOptions <CloudinarySettings> cloudinaryConfig, IWebHostEnvironment hostingEnvironment)
        {
            _environment       = hostingEnvironment;
            _userManager       = userManager;
            _classifiedAdsRepo = classifiedAdsRepo;
            _cloudinaryConfig  = cloudinaryConfig;
            _mapper            = mapper;

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

            _cloudinary = new Cloudinary(acc);
        }
Example #4
0
 public AdminController(UserManager <AppUser> userManager, IClassifiedAdsRepository repo)
 {
     _userManager = userManager;
     _repo        = repo;
 }
Example #5
0
 public ClassifiedAdsController(IClassifiedAdsRepository repo, IMapper mapper)
 {
     _mapper = mapper;
     _repo   = repo;
 }
Example #6
0
 public ClassifiedAdsController(UserManager <AppUser> userManager, IClassifiedAdsRepository repo, IMapper mapper)
 {
     _mapper      = mapper;
     _userManager = userManager;
     _repo        = repo;
 }