public ContentPage FindContentByID(Guid siteID, Guid rootContentID) { ContentPage content = null; vw_carrot_Content cont = CompiledQueries.GetLatestContentByID(db, siteID, false, rootContentID); if (cont != null) { content = new ContentPage(cont); } return content; }
public void SearchTwo() { this.Widgets = null; this.Pages = null; using (ContentPageHelper pageHelper = new ContentPageHelper()) { this.SelectedPage = pageHelper.FindContentByID(SiteData.CurrentSiteID, this.SelectedItem); this.Widgets = this.SelectedPage.GetWidgetList(); } }