Carrotware.CMS.Core.ContentPageHelper.FindContentByID C# (CSharp) Метод

FindContentByID() публичный Метод

public FindContentByID ( System.Guid siteID, System.Guid rootContentID ) : ContentPage
siteID System.Guid
rootContentID System.Guid
Результат ContentPage
        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;
        }

Usage Example

		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();
			}
		}
All Usage Examples Of Carrotware.CMS.Core.ContentPageHelper::FindContentByID