예제 #1
0
        public SearchController(IArticleRepository articleRepository, IAnnouncementRepository announcementRepository,
                                ISubsectionRepository subsectionRepository, ISectionRepository sectionRepository, ICategoryRepository categoryRepository, IRealtyRepository realtyRepository,
                                IRealtyCategoryRepository realtyCategoryRepository, IRealtySectionRepository realtySectionRepository, IProductRepository productRepository)
        {
            _articleRepository         = articleRepository;
            _articleRepository.Context = rc;

            _announcementRepository         = announcementRepository;
            _announcementRepository.Context = rc;

            _subsectionRepository         = subsectionRepository;
            _subsectionRepository.Context = rc;

            _sectionRepository         = sectionRepository;
            _sectionRepository.Context = rc;

            _categoryRepository         = categoryRepository;
            _categoryRepository.Context = rc;

            _realtyRepository         = realtyRepository;
            _realtyRepository.Context = rc;

            _realtyCategoryRepository         = realtyCategoryRepository;
            _realtyCategoryRepository.Context = rc;

            _realtySectionRepository         = realtySectionRepository;
            _realtySectionRepository.Context = rc;

            _productRepository         = productRepository;
            _productRepository.Context = rc;
        }
예제 #2
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;
        }