Exemplo n.º 1
0
        public ShopController(ICityRepository cityRepository, IShopRepository shopRepository, IConfigRepository configRepository,
                              IShopCategoryRefRepository shopCategoryRefRepository, ICatalogCategoryRepository catalogCategoryRepository,
                              ICatalogSecondCategoryRepository catalogSecondCategoryRepository, ICatalogThirdCategoryRepository catalogThirdCategoryRepository,
                              IProductRepository productRepository, IShopProductRefRepository shopProductRefRepository)
        {
            _cityRepository         = cityRepository;
            _cityRepository.Context = rc;

            _shopRepository         = shopRepository;
            _shopRepository.Context = rc;

            _configRepository         = configRepository;
            _configRepository.Context = rc;

            _shopCategoryRefRepository         = shopCategoryRefRepository;
            _shopCategoryRefRepository.Context = rc;

            _catalogCategoryRepository         = catalogCategoryRepository;
            _catalogCategoryRepository.Context = rc;

            _catalogSecondCategoryRepository         = catalogSecondCategoryRepository;
            _catalogSecondCategoryRepository.Context = rc;

            _catalogThirdCategoryRepository         = catalogThirdCategoryRepository;
            _catalogThirdCategoryRepository.Context = rc;

            _productRepository         = productRepository;
            _productRepository.Context = rc;

            _shopProductRefRepository         = shopProductRefRepository;
            _shopProductRefRepository.Context = rc;

            ViewBag.Slogan = ProjectConfiguration.Get.CatalogConfig.Slogan;
        }
Exemplo n.º 2
0
        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;
        }