public CatalogController()
 {
     superCategoryRepo    = new SuperCategoryRepository(new GainBargainContext());
     categoryRepo         = new Repository <Category>(new GainBargainContext());
     productRepo          = new ProductsCacheRepository(new GainBargainContext());
     marketRepo           = new MarketRepository(new GainBargainContext());
     favProductRepository = new FavoriteProductRepository();
 }
 public FavoriteProductController(IFavoriteProductRepository favoriteRepo,
                                  IGenericRepository <Product, int> productRepo, IUserRepository userRepo, IMapper mapper)
 {
     _favoriteRepo = favoriteRepo;
     _productRepo  = productRepo;
     _userRepo     = userRepo;
     _mapper       = mapper;
 }
Example #3
0
 public UserController()
 {
     favCatRepository   = new FavoriteCategoriesRepository();
     favProdRepository  = new FavoriteProductRepository();
     userRepository     = new Repository <User>(new GainBargainContext());
     productRepository  = new ProductsCacheRepository(new GainBargainContext());
     categoryRepository = new Repository <Category>(new GainBargainContext());
     db = new GainBargainContext();
 }
 public ProductController(ITopCategoryRepository topRepo, IProductRepository productRepo, IErrorLogRepository errorRepo, IHttpContextAccessor httpContextAccessor, IMiddleCategoryRepository midRepo, ISubCategoryRepository subRepo, IStringLocalizer <ProductController> localizer, IFavoriteProductRepository fpRepo, ICustomerRepository customerRepo, IBrandRepository brandRepo)
 {
     _topRepo             = topRepo;
     _productRepo         = productRepo;
     _errorRepo           = errorRepo;
     _httpContextAccessor = httpContextAccessor;
     _midRepo             = midRepo;
     _subRepo             = subRepo;
     _localizer           = localizer;
     _fpRepo       = fpRepo;
     _customerRepo = customerRepo;
     _brandRepo    = brandRepo;
 }
 public HomeController(ITopCategoryRepository topRepo, IProductRepository productRepo, IErrorLogRepository errorRepo, IHttpContextAccessor httpContextAccessor, IMiddleCategoryRepository midRepo, ISubCategoryRepository subRepo, IFavoriteProductRepository fpRepo, ICustomerRepository customerRepo, IBrandRepository brandRepo, IMapper mapper, IWebHostEnvironment environment, IProductPhotoRepository photoRepo, IAdminRepository adminRepo, IAdProductRepository adproRepo, IContactUsRepository contactRepo, IEmailNewsletterRepository newsRepo, IFavoriteProductRepository favRepo, IMiniSliderRepository miniRepo, ISliderRepository sliderRepo)
 {
     _topRepo             = topRepo;
     _productRepo         = productRepo;
     _errorRepo           = errorRepo;
     _httpContextAccessor = httpContextAccessor;
     _midRepo             = midRepo;
     _subRepo             = subRepo;
     _fpRepo       = fpRepo;
     _customerRepo = customerRepo;
     _brandRepo    = brandRepo;
     _mapper       = mapper;
     _environment  = environment;
     _photoRepo    = photoRepo;
     _adminRepo    = adminRepo;
     _adproRepo    = adproRepo;
     _contactRepo  = contactRepo;
     _newsRepo     = newsRepo;
     _favRepo      = favRepo;
     _miniRepo     = miniRepo;
     _sliderRepo   = sliderRepo;
 }