Esempio n. 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;
        }
Esempio 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;
        }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
 public TestController(
     IEnvironment environment,
     IUtilities utilities,
     IBrowser browser,
     IRealtyRepository repository,
     ILogger <TestController> logger)
 {
     Environment = environment;
     Utilities   = utilities;
     Browser     = browser;
     Repository  = repository;
     Logger      = logger;
 }
Esempio n. 5
0
 public RealtyController(
     IEnvironment environment,
     IMemoryCache cache,
     IBrowser browser,
     IRealtyRepository repository,
     ILogger <RealtyController> logger
     )
 {
     Environment = environment;
     Cache       = cache;
     Browser     = browser;
     Repository  = repository;
     Logger      = logger;
 }
Esempio n. 6
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;
        }
Esempio n. 8
0
 public RealtyServiceImpl(IMapper mapper, IRealtyRepository realtyRepository)
 {
     _realtyRepository = realtyRepository;
     _mapper           = mapper;
 }