示例#1
0
 public IndexModel(ILogger <IndexModel> logger, IPagesService pagesService, IArticlesService articlesService, ISiteConfigurationRepository configRepository)
 {
     _logger           = logger;
     _pagesService     = pagesService;
     _articlesService  = articlesService;
     _configRepository = configRepository;
 }
 public ContentExportImport(IMenuService menuService, IThemeService themeService, IPagesService pagesService, IStoreService storeService)
 {
     _menuService  = menuService;
     _storeService = storeService;
     _themeService = themeService;
     _pagesService = pagesService;
 }
示例#3
0
 public SeedData(GSTDbContext context, UserManager <User> userManager, RoleManager <IdentityRole> roleManager, IPagesService pages)
 {
     _context     = context;
     _userManager = userManager;
     _roleManager = roleManager;
     this.pages   = pages;
 }
示例#4
0
 public PageFunction(
     IPagesService pagesService,
     JsonSerializerOptions jsonOptions)
 {
     PagesService = pagesService;
     JsonOptions = jsonOptions;
 }
		public ContentExportImport(IMenuService menuService, IThemeService themeService, IPagesService pagesService, IStoreService storeService)
		{
			_menuService = menuService;
			_storeService = storeService;
			_themeService = themeService;
			_pagesService = pagesService;
		}
 public SearchViewModel(IVisualStudioService visualStudioService, IRegexService regexService, IPagesService pagesService)
 {
     this._visualStudioService = visualStudioService;
     this._regexService = regexService;
     this._pagesService = pagesService;
     Results = new ObservableCollection<Result>();
 }
 public LandingsService(
     DbModels.DatabaseContext dbContext,
     ILogger <SchoolsService> logger,
     IPagesService pagesService)
 {
     DbContext    = dbContext;
     Logger       = logger;
     PagesService = pagesService;
 }
 public BookController(
     IBooksService booksService,
     IPagesService pagesService,
     IPageConnectionsService pageConnectionsService)
 {
     this.booksService           = booksService;
     this.pagesService           = pagesService;
     this.pageConnectionsService = pageConnectionsService;
 }
示例#9
0
 public AdministrationAreaController(IPagesService pageService,
                                     IUsersService usersService,
                                     ILogService logsService,
                                     IVideosService videosService,
                                     IPicturesService picturesService,
                                     IPostsService postsService,
                                     UserManager <User> userManger)
     : base(pageService, usersService, logsService, videosService, picturesService, postsService, userManger)
 {
 }
示例#10
0
 public HomeController(IVideosService videosService,
                       IPicturesService picturesService,
                       IPagesService pagesService,
                       IPostsService postsService)
 {
     this.videosService   = videosService;
     this.picturesService = picturesService;
     this.pagesService    = pagesService;
     this.postsService    = postsService;
 }
示例#11
0
 public PagesController(
     IPagesService pagesService,
     IValidator <CreatePageRequestDto> addPageRequestValidator,
     IValidator <UpdatePageRequestDto> updatePageRequestValidator,
     IMapper mapper) : base(mapper)
 {
     _pagesService               = pagesService;
     _addPageRequestValidator    = addPageRequestValidator;
     _updatePageRequestValidator = updatePageRequestValidator;
 }
示例#12
0
 public ManagePagesController(IPagesService pagesService,
                              IPageModelFactory pageModelFactory,
                              ILocalizationService localizationService,
                              ILocalizedEntityService localizedEntityService)
 {
     _pagesService           = pagesService;
     _pageModelFactory       = pageModelFactory;
     _localizationService    = localizationService;
     _localizedEntityService = localizedEntityService;
 }
示例#13
0
 public PageController(
     IBooksService booksService,
     IPagesService pagesService,
     IPageConnectionsService pageConnectionsService,
     IUsersService usersService)
 {
     this.booksService           = booksService;
     this.pagesService           = pagesService;
     this.pageConnectionsService = pageConnectionsService;
     this.usersService           = usersService;
 }
示例#14
0
 public PostsController(
     IPostsService postsService,
     IProfilesService profilesService,
     IPagesService pagesService,
     IWebHostEnvironment webHost)
 {
     this.postsService    = postsService;
     this.profilesService = profilesService;
     this.pagesService    = pagesService;
     this.webHost         = webHost;
 }
示例#15
0
 public HomeController(ISocialIconService socialIconService, IProductService productService,
                       ICompanyService companyService, IMenuService menuService, ISliderService sliderService,
                       IBulletinMemberService bulletinMemberService, IPagesService pagesService)
 {
     this._productService        = productService;
     this._companyService        = companyService;
     this._menuService           = menuService;
     this._sliderService         = sliderService;
     this._bulletinMemberService = bulletinMemberService;
     this._pagesService          = pagesService;
     this._socialIconService     = socialIconService;
 }
示例#16
0
 public DefaultPagesApiOperations(IPagesService pages, IPageService page, IContentService content, IWidgetService widget, IWidgetsService widgets,
                                  IRedirectsService redirects, IRedirectService redirect, ISitemapService sitemap)
 {
     Pages     = pages;
     Page      = page;
     Content   = content;
     Widget    = widget;
     Widgets   = widgets;
     Redirect  = redirect;
     Redirects = redirects;
     Sitemap   = sitemap;
 }
 public DefaultPagesApiOperations(IPagesService pages, IPageService page, IContentService content, IWidgetService widget, IWidgetsService widgets,
     IRedirectsService redirects, IRedirectService redirect, ISitemapService sitemap)
 {
     Pages = pages;
     Page = page;
     Content = content;
     Widget = widget;
     Widgets = widgets;
     Redirect = redirect;
     Redirects = redirects;
     Sitemap = sitemap;
 }
示例#18
0
 public PagesController(
     IPagesService pagesService,
     IWebHostEnvironment webHost,
     ICommentsService commentsService,
     IPostsService postsService,
     IProfilesService profilesService)
 {
     this.pagesService    = pagesService;
     this.webHost         = webHost;
     this.commentsService = commentsService;
     this.postsService    = postsService;
     this.profilesService = profilesService;
 }
示例#19
0
 public LayoutController(
     IUserNavigationManager userNavigationManager,
     ILocalizationManager localizationManager,
     ISessionAppService sessionAppService,
     IMultiTenancyConfig multiTenancyConfig, IPagesService pagesService, IMenuService menuService, ILanguageManager languageManager)
 {
     _userNavigationManager = userNavigationManager;
     _localizationManager   = localizationManager;
     _sessionAppService     = sessionAppService;
     _multiTenancyConfig    = multiTenancyConfig;
     _pagesService          = pagesService;
     _menuService           = menuService;
     _languageManager       = languageManager;
 }
示例#20
0
        public BaseController()
        {
            this.data = new UoWData();
            this.itemsService = new ItemsService(this.data);
            this.articlesService = new ArticlesService(this.data);
            this.pagesService = new PagesService(this.data);

            LayoutModel model = new LayoutModel();
            model.ItemCategories = this.itemsService.GetItemCategories();
            model.Articles = this.articlesService.GetArticles().Take(5);
            model.Pages = this.pagesService.GetPages();

            ViewBag.LayoutModel = model;
        }
示例#21
0
 public SiteMapController(ISitemapGenerator sitemapGenerator,
                          IPostService <TblPosts> postService,
                          IPostCategoriesService categoriesService,
                          IPostTagsService tagsService,
                          IPagesService pagesService,
                          ILanguagesService languagesService)
 {
     _sitemapGenerator  = sitemapGenerator;
     _postService       = postService;
     _categoriesService = categoriesService;
     _tagsService       = tagsService;
     _pagesService      = pagesService;
     _languagesService  = languagesService;
 }
 public ManageRedirectsController(IRedirectsService redirectsService,
                                  IRedirectModelFactory redirectModelFactory,
                                  ILocalizationService localizationService,
                                  IProductService productService,
                                  IBlogPostService blogPostService,
                                  IPagesService pagesService)
 {
     _redirectsService     = redirectsService;
     _redirectModelFactory = redirectModelFactory;
     _localizationService  = localizationService;
     _productService       = productService;
     _blogPostService      = blogPostService;
     _pagesService         = pagesService;
 }
示例#23
0
 public HomeController(
     IPagesService pagesService,
     IGamesService gamesService,
     IPostsService postsService,
     IPartiesService partiesService,
     IUsersService usersService,
     IDistributedCache distributedCache)
 {
     this.pagesService     = pagesService;
     this.gamesService     = gamesService;
     this.postsService     = postsService;
     this.partiesService   = partiesService;
     this.usersService     = usersService;
     this.distributedCache = distributedCache;
 }
		public ContentExportImport(IMenuService menuService, Func<string, IThemeService> themeServiceFactory, Func<string, IPagesService> pagesServiceFactory, IStoreService storeService, ISettingsManager settingsManager)
		{
			_menuService = menuService;
			_storeService = storeService;

            var pagesChosenRepository = settingsManager.GetValue(
                "VirtoCommerce.Content.MainProperties.PagesRepositoryType",
                string.Empty);

            var themeChosenRepository = settingsManager.GetValue(
                "VirtoCommerce.Content.MainProperties.ThemesRepositoryType",
                string.Empty);

            _pagesService = pagesServiceFactory.Invoke(pagesChosenRepository);
		    _themeService = themeServiceFactory.Invoke(themeChosenRepository);
		}
示例#25
0
        public ContentExportImport(IMenuService menuService, Func <string, IThemeService> themeServiceFactory, Func <string, IPagesService> pagesServiceFactory, IStoreService storeService, ISettingsManager settingsManager)
        {
            _menuService  = menuService;
            _storeService = storeService;

            var pagesChosenRepository = settingsManager.GetValue(
                "VirtoCommerce.Content.MainProperties.PagesRepositoryType",
                string.Empty);

            var themeChosenRepository = settingsManager.GetValue(
                "VirtoCommerce.Content.MainProperties.ThemesRepositoryType",
                string.Empty);

            _pagesService = pagesServiceFactory.Invoke(pagesChosenRepository);
            _themeService = themeServiceFactory.Invoke(themeChosenRepository);
        }
示例#26
0
        public ModeratorController(IPagesService pageService,
                                   IUsersService usersService,
                                   ILogService logsService,
                                   IVideosService videosService,
                                   IPicturesService picturesService,
                                   IPostsService postsService,
                                   UserManager <User> userManager)
        {
            this.pageService     = pageService;
            this.usersService    = usersService;
            this.logsService     = logsService;
            this.videosService   = videosService;
            this.picturesService = picturesService;
            this.postsService    = postsService;

            this.userManager = userManager;
        }
示例#27
0
 public EpisodesService(
     IWebtoonsRepository webtoonsRepository,
     IEpisodesRepository episodesRepository,
     IPagesRepository pagesRepository,
     IPagesService pagesService,
     IEpisodesLikesService episodesLikesService,
     ICommentsRepository commentsRepository,
     IApplicationUserRepository applicationUserRepository,
     ICommentsVotesRepository commentsVotesRepository)
 {
     this.webtoonsRepository        = webtoonsRepository;
     this.episodesRepository        = episodesRepository;
     this.pagesRepository           = pagesRepository;
     this.pagesService              = pagesService;
     this.episodesLikesService      = episodesLikesService;
     this.commentsRepository        = commentsRepository;
     this.applicationUserRepository = applicationUserRepository;
     this.commentsVotesRepository   = commentsVotesRepository;
 }
示例#28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WebsiteController" /> class.
 /// </summary>
 /// <param name="loggerService">The logger service.</param>
 /// <param name="websiteService">The website service.</param>
 /// <param name="displayNameService">The display name service.</param>
 /// <param name="testService">The test service.</param>
 /// <param name="suiteService">The suite service.</param>
 /// <param name="schedulerService">The Scheduler service.</param>
 /// <param name="sharedTestService">The shared test service.</param>
 /// <param name="dataBaseCategoriesService">The data base Categories service.</param>
 public WebsiteController(
     ILoggerService loggerService,
     IWebsiteService websiteService,
     IPagesService displayNameService,
     ITestService testService,
     ISuiteService suiteService,
     ISchedulerService schedulerService,
     ISharedTestService sharedTestService,
     IDataBaseCategoriesService dataBaseCategoriesService)
     : base(loggerService)
 {
     this.websiteService            = websiteService;
     this.displayNameService        = displayNameService;
     this.testService               = testService;
     this.suiteService              = suiteService;
     this.schedulerService          = schedulerService;
     this.sharedTestService         = sharedTestService;
     this.dataBaseCategoriesService = dataBaseCategoriesService;
 }
		public PagesController(Func<string, IPagesService> serviceFactory, ISettingsManager settingsManager)
		{
			if (serviceFactory == null)
			{
				throw new ArgumentNullException("serviceFactory");
			}

			if (settingsManager == null)
			{
				throw new ArgumentNullException("settingsManager");
			}

			var chosenRepository = settingsManager.GetValue(
				"VirtoCommerce.Content.MainProperties.PagesRepositoryType",
				string.Empty);

			var pagesService = serviceFactory.Invoke(chosenRepository);

			_pagesService = pagesService;
		}
示例#30
0
        public PagesController(Func <string, IPagesService> serviceFactory, ISettingsManager settingsManager)
        {
            if (serviceFactory == null)
            {
                throw new ArgumentNullException("serviceFactory");
            }

            if (settingsManager == null)
            {
                throw new ArgumentNullException("settingsManager");
            }

            var chosenRepository = settingsManager.GetValue(
                "VirtoCommerce.Content.MainProperties.PagesRepositoryType",
                string.Empty);

            var pagesService = serviceFactory.Invoke(chosenRepository);

            _pagesService = pagesService;
        }
        public SyncController(Func <string, IThemeService> themeFactory, Func <string, IPagesService> pageFactory, ISettingsManager manager)
        {
            if (themeFactory == null)
            {
                throw new ArgumentNullException("factory");
            }

            if (manager == null)
            {
                throw new ArgumentNullException("manager");
            }
            var chosenThemeRepository = manager.GetValue(
                "VirtoCommerce.Content.MainProperties.ThemesRepositoryType",
                string.Empty);

            var chosenPagesRepository = manager.GetValue(
                "VirtoCommerce.Content.MainProperties.PagesRepositoryType",
                string.Empty);

            this._themeService = themeFactory.Invoke(chosenThemeRepository);
            this._pagesService = pageFactory.Invoke(chosenPagesRepository);
        }
        public SyncController(Func<string, IThemeService> themeFactory, Func<string, IPagesService> pageFactory, ISettingsManager manager)
		{
			if (themeFactory == null)
			{
				throw new ArgumentNullException("factory");
			}

			if (manager == null)
			{
				throw new ArgumentNullException("manager");
			}
			var chosenThemeRepository = manager.GetValue(
				"VirtoCommerce.Content.MainProperties.ThemesRepositoryType",
				string.Empty);

            var chosenPagesRepository = manager.GetValue(
                "VirtoCommerce.Content.MainProperties.PagesRepositoryType",
                string.Empty);

            this._themeService = themeFactory.Invoke(chosenThemeRepository);
            this._pagesService = pageFactory.Invoke(chosenPagesRepository);
		}
 public ShopifyImportService(
     IShopifyRepository shopifyRepository,
     IShopifyConverter shopifyConverter,
     IPushNotificationManager notifier,
     IItemService productService,
     ICategoryService categoryService,
     ICatalogSearchService searchService,
     IThemeService themeService,
     IPricingService pricingService,
     IPropertyService propertyService,
     IPagesService pagesService)
 {
     _shopifyRepository = shopifyRepository;
     _shopifyConverter  = shopifyConverter;
     _notifier          = notifier;
     _productService    = productService;
     _categoryService   = categoryService;
     _searchService     = searchService;
     _themeService      = themeService;
     _pricingService    = pricingService;
     _propertyService   = propertyService;
     _pagesService      = pagesService;
 }
示例#34
0
 public PagesController(IPagesService pagesService)
 {
     _pagesService = pagesService;
 }
示例#35
0
 public ContentController(IPagesService pagesService, IMenuService menuService)
 {
     this._pagesService = pagesService;
     this._menuService  = menuService;
 }
示例#36
0
 public PagesController()
 {
     this.data = new UoWData();
     this.pagesService = new PagesService(data);
 }
示例#37
0
 public PagesController(IPagesService pageservice, ISideBarService sidebarservice)
 {
     _pageservice    = pageservice;
     _SideBarService = sidebarservice;
 }
示例#38
0
 public PagesController(IPagesService pages)
 {
     _pages = pages;
 }