public BookmarksController(
            IAnnouncementBookmarkRepository bookmarkRepository,
            IAnnouncementRepository announcementRepository,
            IConfigRepository configRepository,
            IRealtyBookmarkRepository realtyBookmarksRepository,
            IRealtyRepository realtyRepository, IProductBookmarkRepository productBookmarkrepository,
            IProfileRepository profileRepository)
        {
            _bookmarkRepository         = bookmarkRepository;
            _bookmarkRepository.Context = rc;

            _announcementRepository         = announcementRepository;
            _announcementRepository.Context = rc;

            _configRepository         = configRepository;
            _configRepository.Context = rc;

            _realtyBookmarksRepository         = realtyBookmarksRepository;
            _realtyBookmarksRepository.Context = rc;

            _realtyRepository         = realtyRepository;
            _realtyRepository.Context = rc;

            _productBookmarkRepository         = productBookmarkrepository;
            _productBookmarkRepository.Context = rc;

            _profileRepository         = profileRepository;
            _profileRepository.Context = rc;
        }
Beispiel #2
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;
        }
        public AjaxServicesController(
            ISubsectionRepository subsectionRepository,
            IProfileRepository profileRepository,
            IAnnouncementBookmarkRepository announcementBookmarkRepository,
            IAnnouncementRepository announcementRepository,
            IAnnouncementImageRepository announcementImageRepository,
            IConfigRepository configRepository,
            IArticleRepository articleRepository,
            IArticleSectionRepository articleSectionRepository,
            IArticleSubsectionRepository articleSubsectionRepository,
            IRealtyRepository realtyRepository,
            IRealtyPhotoRepository realtyPhotoRepository,
            IRealtyBookmarkRepository realtyBookmarkRepository,
            IShopRepository shopRepository,
            ICatalogSecondCategoryRepository catalogSecondCategoryRepository,
            ICatalogThirdCategoryRepository catalogThirdCategoryRepository,
            IShopCategoryRefRepository shopCategoryRefRepository,
            IProductImageRepository productImageRepository,
            IShopProductRefRepository shopProductRefRepository,
            IProductBookmarkRepository productBookmarkRepository,
            IProductRepository productRepository)
        {
            _subsectionRepository         = subsectionRepository;
            _subsectionRepository.Context = rc;

            _profileRepository         = profileRepository;
            _profileRepository.Context = rc;

            _announcementBookmarkRepository         = announcementBookmarkRepository;
            _announcementBookmarkRepository.Context = rc;

            _announcementRepository         = announcementRepository;
            _announcementRepository.Context = rc;

            _announcementImageRepository         = announcementImageRepository;
            _announcementImageRepository.Context = rc;

            _configRepository         = configRepository;
            _configRepository.Context = rc;

            _articleRepository         = articleRepository;
            _articleRepository.Context = rc;

            _articleSectionRepository         = articleSectionRepository;
            _articleSectionRepository.Context = rc;

            _articleSubsectionRepository         = articleSubsectionRepository;
            _articleSubsectionRepository.Context = rc;

            _realtyRepository         = realtyRepository;
            _realtyRepository.Context = rc;

            _realtyPhotoRepository         = realtyPhotoRepository;
            _realtyPhotoRepository.Context = rc;

            _realtyBookmarkRepository         = realtyBookmarkRepository;
            _realtyBookmarkRepository.Context = rc;

            _shopRepository         = shopRepository;
            _shopRepository.Context = rc;

            _catalogSecondCategoryRepository         = catalogSecondCategoryRepository;
            _catalogSecondCategoryRepository.Context = rc;

            _catalogThirdCategoryRepository         = catalogThirdCategoryRepository;
            _catalogThirdCategoryRepository.Context = rc;

            _shopCategoryRefRepository         = shopCategoryRefRepository;
            _shopCategoryRefRepository.Context = rc;

            _productImageRepository         = productImageRepository;
            _productImageRepository.Context = rc;

            _shopProductRefRepository         = shopProductRefRepository;
            _shopProductRefRepository.Context = rc;

            _productBookmarkRepository         = productBookmarkRepository;
            _productBookmarkRepository.Context = rc;

            _productRepository         = productRepository;
            _productRepository.Context = rc;
        }