示例#1
0
        public RealtyController(IRealtyRepository realtyRepository, ICityRepository cityRepository,
                                IRealtyCategoryRepository categoryRepository, IRealtySectionRepository sectionRepository,
                                ICurrencyRepository currencyRepository, IRealtyPhotoRepository photoRepository,
                                IRealtyBookmarkRepository bookmarkRepository, IProfileRepository profileRepository, IComputerRepository computerRepository, IComputerRealtyRefRepository computerRealtyRefRepository)
        {
            _realtyRepository         = realtyRepository;
            _realtyRepository.Context = rc;

            _cityRepository         = cityRepository;
            _cityRepository.Context = rc;

            _categoryRepository         = categoryRepository;
            _categoryRepository.Context = rc;

            _sectionRepository         = sectionRepository;
            _sectionRepository.Context = rc;

            _currencyRepository         = currencyRepository;
            _currencyRepository.Context = rc;

            _photoRepository         = photoRepository;
            _photoRepository.Context = rc;

            _bookmarkRepository         = bookmarkRepository;
            _bookmarkRepository.Context = rc;

            _profileRepository         = profileRepository;
            _profileRepository.Context = rc;

            _computerRepository         = computerRepository;
            _computerRepository.Context = rc;

            _computerRealtyRefRepository         = computerRealtyRefRepository;
            _computerRealtyRefRepository.Context = rc;

            ViewBag.SelectedSiteCategory = CategorySearch.Realty;
        }
        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;
        }