示例#1
0
        private void GenerateHtmlHomePage()
        {
            var results = _queryManager.GetAllAuthorities()
                          .Where(x => x.HasHauntedOrgs &&
                                 !x.IsCrossBorderArea &&
                                 !x.IsEngland);

            var links = results.Select(result => new PageLinkModel
            {
                Filename = result.CleanQualifiedName,
                Id       = result.Id,
                Title    = result.QualifiedName,
                Text     = result.QualifiedName,
                Total    = result.HauntedPubCount
            })
                        .OrderBy(o => o.Text)
                        .ToList();

            CreatePageTypeFile(
                PageTypeEnum.Home,
                PageTypePriority.Home,
                "We have the largest haunted pub directory. Please make your selection below!",
                links,
                "Haunted pubs with a ghostly difference - Welcome to Ghost Pubs!");
        }