Пример #1
0
 public ExamplePageType GetExamplePage_TreeNode(int ID)
 {
     return(ExamplePageTypeProvider.GetExamplePageType(ID, mCultureName, SiteContext.CurrentSiteName)
            .LatestVersion(mLatestVersionEnabled)
            .Published(!mLatestVersionEnabled)
            .CombineWithDefaultCulture()
            .FirstOrDefault());
 }
Пример #2
0
        public ExamplePageTypeModel GetExamplePage(Guid guid)
        {
            // Get the Page
            var Page = ExamplePageTypeProvider.GetExamplePageType(guid, mCultureName, SiteContext.CurrentSiteName)
                       .LatestVersion(mLatestVersionEnabled)
                       .Published(!mLatestVersionEnabled)
                       .CombineWithDefaultCulture()
                       .FirstOrDefault();

            // Convert to Model
            return(new ExamplePageTypeModel()
            {
                Name = Page.Name,
                ID = Page.NodeID
            });
        }