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; }
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; }