Exemple #1
0
        public Entities.Page GetPage(Entities.Page root, string value)
        {
            var component = new PageComponent(Context);
            var content = new ContentComponent(Context);
            var page = component.GetPage(root, value);
            page.Contents = content.GetPageContent(page);

            return page;
        }
Exemple #2
0
        public List<ContentModel> GetContent(string url)
        {
            var contentComponent = new ContentComponent(Context);
            var pageService = new PageService(Context);
            var page = pageService.GetPage(Context.Root, url);
            var content = contentComponent.GetPageContent(page);

            var contentModels = content.Select(x => ContentModel(x)).ToList();

            return contentModels;
        }