private void CreateTopLevelRegionsFile(string currentRoot) { var regions = _queryManager.GetRegions() .ToList(); var pageLinks = regions.Select(x => x.Name != null ? new PageLinkModel { Text = x.Name, Title = x.Name, Filename = x.CleanQualifiedName, Total = x.HauntedPubCount } : null) .OrderBy(x => x.Text) .ToList(); var metaDescription = string.Format("Haunted pubs in {0}", regions.Select(region => region.Name).OxfordAnd()) .SeoMetaDescriptionTruncate(); var articleDescription = string.Format("Haunted pubs in {0}", regions.Select(region => region.Name).OxfordAnd()); regions = null; var viewModel = OutputViewModel.CreateAllUkRegionsOutputViewModel(currentRoot, pageLinks, metaDescription, articleDescription); WriteFile(viewModel); }