Esempio n. 1
0
 /// <summary>
 /// Returns an enumerable collection of stories about company's philosophy ordered by a position in the content tree.
 /// </summary>
 /// <returns>An enumerable collection of stories about company's philosophy ordered by a position in the content tree.</returns>
 public IEnumerable <AboutUsSection> GetSideStories()
 {
     return(AboutUsSectionProvider.GetAboutUsSections()
            .LatestVersion(mLatestVersionEnabled)
            .Published(!mLatestVersionEnabled)
            .OnSite(mSiteName)
            .Culture(mCultureName)
            .OrderBy("NodeOrder"));
 }
 /// <summary>
 /// Returns an enumerable collection of stories about company's philosophy ordered by a position in the content tree.
 /// </summary>
 /// <returns>An enumerable collection of stories about company's philosophy ordered by a position in the content tree.</returns>
 public IEnumerable <AboutUsSection> GetSideStories()
 {
     return(AboutUsSectionProvider.GetAboutUsSections()
            .LatestVersion(mLatestVersionEnabled)
            .Published(!mLatestVersionEnabled)
            .OnSite(SiteContext.CurrentSiteName)
            .Culture(mCultureName)
            .CombineWithDefaultCulture()
            .OrderBy("NodeOrder")
            .ToList());
 }