public PageContentService(INewsRepository newsRepository, IPageContentRepository pageContentRepository,
                           INavigationRepositrory navigationRepositrory, ILoggerHelper logger, IServiceProvider serviceProvider) : base(logger, serviceProvider)
 {
     this.newsRepository        = newsRepository;
     this.pageContentRepository = pageContentRepository;
     this.navigationRepositrory = navigationRepositrory;
 }
Exemplo n.º 2
0
 public LayoutManager(ILifetimeScope container)
 {
     _logger                = container.Resolve <ILogger <LayoutManager> >();
     _layoutRepository      = container.Resolve <ILayoutRepository>();
     _pageRepository        = container.Resolve <IPageRepository>();
     _pageContentRepository = container.Resolve <IPageContentRepository>();
 }
Exemplo n.º 3
0
 public PageContentService(IPageContentRepository editSessionRepository,
                           IPageService pageService,
                           Identity.IAccessProvider signInManager)
 {
     this.editSessionRepository = editSessionRepository ?? throw new ArgumentNullException(nameof(editSessionRepository));
     this.pageService           = pageService ?? throw new ArgumentNullException(nameof(pageService));
     this.signInManager         = signInManager ?? throw new ArgumentNullException(nameof(signInManager));
 }
Exemplo n.º 4
0
 public ContentManager(ILifetimeScope container)
     : base(container)
 {
     _logger = container.Resolve <ILogger <ContentManager> >();
     _pageContentRepository = container.Resolve <IPageContentRepository>();
     _scopeService          = container.Resolve <IScopeService>();
     //_httpContextAccessor = container.Resolve<IHttpContextAccessor>();
     //_roleRepository = container.Resolve<IRoleRepository>();
 }
Exemplo n.º 5
0
 public DbInit(IConnection connection, ISiteRepository siteRepository, IPageRepository pageRepository, IPageTypeRepository pageTypeRepository, IFieldTypeRepository fieldTypeRepository, IPageContentRepository pageContentRepository)
 {
     _connection            = connection;
     _siteRepository        = siteRepository;
     _pageRepository        = pageRepository;
     _pageTypeRepository    = pageTypeRepository;
     _pageContentRepository = pageContentRepository;
     _fieldTypeRepository   = fieldTypeRepository;
 }
Exemplo n.º 6
0
 public RecycleAdminService(ILogger <RecycleAdminService> logger,
                            ILayoutRepository layoutRepository,
                            IPageContentRepository pageContentRepository,
                            IPageRepository pageRepository)
 {
     _logger                = logger;
     _layoutRepository      = layoutRepository;
     _pageContentRepository = pageContentRepository;
     _pageRepository        = pageRepository;
 }
 public ContentManager(ILogger <ContentManager> logger,
                       IPageContentRepository pageContentRepository,
                       IScopeService scopeService,
                       IServiceProvider serviceProvider)
     : base(serviceProvider)
 {
     _logger = logger;
     _pageContentRepository = pageContentRepository;
     _scopeService          = scopeService;
     //_httpContextAccessor = container.Resolve<IHttpContextAccessor>();
     //_roleRepository = container.Resolve<IRoleRepository>();
 }
 public LayoutManager(ILogger <LayoutManager> logger,
                      ILayoutRepository layoutRepository,
                      IMapper mapper,
                      IPageRepository pageRepository,
                      IPageContentRepository pageContentRepository)
 {
     _logger                = logger;
     _layoutRepository      = layoutRepository;
     _mapper                = mapper;
     _pageRepository        = pageRepository;
     _pageContentRepository = pageContentRepository;
 }
Exemplo n.º 9
0
 public HomeService(INavigationRepositrory navigationRepositrory, IImgPlayInfoRepository imgPlayInfoRepository,
                    INewsRepository newsRepository, IFriendlyLinkRepository friendlyLinkRepository,
                    IPageContentRepository pageContentRepository, IOwnerService ownerService,
                    IKeyValueService keyValueService, ILoggerHelper logger, IServiceProvider serviceProvider) : base(logger, serviceProvider)
 {
     this.navigationRepositrory  = navigationRepositrory;
     this.imgPlayInfoRepository  = imgPlayInfoRepository;
     this.newsRepository         = newsRepository;
     this.friendlyLinkRepository = friendlyLinkRepository;
     this.pageContentRepository  = pageContentRepository;
     this.ownerService           = ownerService;
     this.keyValueService        = keyValueService;
 }
Exemplo n.º 10
0
        public static RoutePageRequest RetrievePageRequest(ControllerContext filterContext, IPageContentRepository repository)
        {
            RoutePageRequest routeRequest = new RoutePageRequest();

            routeRequest.UrlSegment = filterContext.RouteData.Values["urlSegment"] == null ? filterContext.RouteData.Values["action"].ToString() : filterContext.RouteData.Values["urlSegment"].ToString();

            routeRequest.Area = filterContext.RouteData.Values["area"] == null ? "" : filterContext.RouteData.Values["area"].ToString();

            routeRequest.Category = filterContext.RouteData.Values["category"]?.ToString();
            if (string.IsNullOrEmpty(routeRequest.Category))
            {
                string controller = filterContext.RouteData.Values["controller"].ToString();
                routeRequest.Category = controller != "PublicContent" ? controller : null;
            }

            routeRequest.Category = routeRequest.Category == "none" ? null : routeRequest.Category;

            routeRequest.SubCategory = filterContext.RouteData.Values["subCategory"]?.ToString();

            routeRequest.PageContent = repository.RetrieveAsync(routeRequest).Result;
            return routeRequest;
        }
Exemplo n.º 11
0
 public SitemapController(IPageContentRepository repo)
 {
     repository = repo;
 }
Exemplo n.º 12
0
 public TitleDescriptionController(IPageContentRepository PageContentRepository)
 {
     this._pageContentRepository = PageContentRepository;
 }
Exemplo n.º 13
0
 public PageContentService(ILogger log, IPageContentRepository pageContentRepo) : base(log)
 {
     _pageContentRepo = pageContentRepo;
 }
Exemplo n.º 14
0
 public PageContentController(IPageContentRepository PageContentRepository, ILanguageRepository LanguageRepository)
 {
     _repPageContent = PageContentRepository;
     _repLanguage    = LanguageRepository;
 }
Exemplo n.º 15
0
 public ResolvePageContent(IPageContentRepository _repo)
 {
     repository = _repo;
 }
Exemplo n.º 16
0
 public PageContentService(IPageContentRepository pageContentRepository, ICache cache)
 {
     _pageContentRepository = pageContentRepository;
     _cache = cache;
 }
Exemplo n.º 17
0
 public ControlPanelController(IPageContentRepository repo)
 {
     repository = repo;
 }
 public ContentTranslationController(ILifetimeScope container)
 {
     _logger = container.Resolve <ILogger <ContentTranslationController> >();
     _pageContentRepository = container.Resolve <IPageContentRepository>();
 }
Exemplo n.º 19
0
 public ContentTranslationController(ILogger <ContentTranslationController> logger,
                                     IPageContentRepository pageContentRepository)
 {
     _logger = logger;
     _pageContentRepository = pageContentRepository;
 }