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 void Post(Entities.Page page) { var pageComponent = new PageComponent(Context); pageComponent.Add(page); }
public Entities.Page Get(Guid id) { var pageComponent = new PageComponent(Context); return pageComponent.GetPage(id); }
public IEnumerable<Entities.Page> Get() { var component = new PageComponent(Context); return component.GetAll(); }
public Entities.Page GetRoot() { var component = new PageComponent(Context); return component.GetRoot().First(); }