private async Task SetData(PageData pageData) { ISitecoreItem item = pageData.ItemContext.FirstOrDefault(); base.Title = item.GetValueFromField(Constants.Sitecore.Fields.PageContent.Title); ContentHeader = item.GetValueFromField(Constants.Sitecore.Fields.PageContent.Title); ContentSummary = item.GetValueFromField(Constants.Sitecore.Fields.PageContent.Summary); ContentMedia = await _cachedMediaRepository.GetCache(item.GetImageUrlFromMediaField(Constants.Sitecore.Fields.PageContent.Image)); IEnumerable <ListItem> listItems = await _listItemService.GenerateListItemsFromChildren(pageData.DataSourceFromChildren); ListItems = listItems.ToList().AsPairsSafe().ToObservableCollection(); }