Exemple #1
0
 public async void OnGet()
 {
     Pricing      = (await _orchard.GetRecentContentItemsByContentTypeAsync("Pricing")).SingleOrDefault();
     BreadCrumbVM = new BreadCrumbViewModel()
     {
         DisplayText = T[Pricing.DisplayText],
         SubTitle    = T[(string)Pricing.Content.SubtitlePart?.Subtitle.Text ?? ""]
     };
     PriceList = (await _orchard.GetRecentContentItemsByContentTypeAsync("PricePlan")).OrderBy(p => p.Content.PricePlan.Price.Value);
 }
 public async void OnGet()
 {
     Faq     = (await _orchard.GetRecentContentItemsByContentTypeAsync("FAQ")).SingleOrDefault();
     FaqList = await _orchard.GetRecentContentItemsByContentTypeAsync("QuestionAnswer");
 }
Exemple #3
0
 public void OnGet()
 {
     ServicesContainer = _orchardHelper.GetRecentContentItemsByContentTypeAsync("Services").GetAwaiter().GetResult().SingleOrDefault();
     ServicesList      = _orchardHelper.GetRecentContentItemsByContentTypeAsync("Service").GetAwaiter().GetResult().OrderByDescending(c => c.CreatedUtc).Take(3);
 }
 public async Task <ContentItem> InitializeContainer(string containerContentType)
 {
     return((await _orchard.GetRecentContentItemsByContentTypeAsync(containerContentType)).FirstOrDefault());
 }