Ejemplo n.º 1
0
        public ProductController(IProductRepository productRepository, IProductParamValueRepository productParamValueRepository,
                                 ICatalogCategoryRepository catalogCategoryRepository, ICatalogSecondCategoryRepository catalogSecondCategoryRepository,
                                 IProductBookmarkRepository productBookmarkRepository, IPopularProductRepository popularProductRepository)
        {
            _productRepository         = productRepository;
            _productRepository.Context = rc;

            _productParamValueRepository         = productParamValueRepository;
            _productParamValueRepository.Context = rc;

            _catalogCategoryRepository         = catalogCategoryRepository;
            _catalogCategoryRepository.Context = rc;

            _catalogSecondCategoryRepository         = catalogSecondCategoryRepository;
            _catalogSecondCategoryRepository.Context = rc;

            _productBookmarkRepository         = productBookmarkRepository;
            _productBookmarkRepository.Context = rc;

            _popularProductRepository         = popularProductRepository;
            _popularProductRepository.Context = rc;

            ViewBag.SelectedSiteCategory = CategorySearch.Product;
            ViewBag.Slogan = ProjectConfiguration.Get.CatalogConfig.Slogan;
        }
Ejemplo n.º 2
0
        public HomeController(IPopularSectionInCatalogRepository popularSectionInCatalogRepository,
                              IPopularAnnouncementRepository popularAnnoucementRepository,
                              INewSectionInCatalogRepository newSectionInCatalogRepository,
                              IPopularProductRepository popularProductRepository,
                              IRealtyRepository realtyRepository,
                              IAnnouncementRepository announcementRepository,
                              ICategoryRepository categoryRepository)
        {
            _popularSectionCatalogRepository         = popularSectionInCatalogRepository;
            _popularSectionCatalogRepository.Context = rc;

            _newSectionInCatalogRepository         = newSectionInCatalogRepository;
            _newSectionInCatalogRepository.Context = rc;

            _popularProductRepository         = popularProductRepository;
            _popularProductRepository.Context = rc;

            ViewBag.Slogan = ProjectConfiguration.Get.AnnouncementConfig.Slogan;
            ViewBag.SelectedSiteCategory = CategorySearch.Announcement;

            _popularAnnoucementRepository         = popularAnnoucementRepository;
            _popularAnnoucementRepository.Context = rc;

            _realtyRepository         = realtyRepository;
            _realtyRepository.Context = rc;

            _announcementRepository         = announcementRepository;
            _announcementRepository.Context = rc;

            _categoryRepository         = categoryRepository;
            _categoryRepository.Context = rc;
        }
Ejemplo n.º 3
0
 public PopularProductManager(IPopularProductRepository popularProductRepository)
 {
     _popularProductRepository = popularProductRepository;
 }
Ejemplo n.º 4
0
 public PopularProductGetAllViewComponent(IPopularProductRepository popularProductRepository)
 {
     _popularProductRepository = popularProductRepository;
 }