public string Index() { if (ReferenceId == 0) { return(SiteUtilities.SiteTop()); } SetSite(initSiteSettings: true); ViewModes.Set(Site.SiteId); switch (Site.ReferenceType) { case "Sites": return(SiteUtilities.SiteMenu(Site)); case "Issues": return(IssueUtilities.Index(ss: Site.SiteSettings)); case "Results": return(ResultUtilities.Index(ss: Site.SiteSettings)); default: return(HtmlTemplates.Error(Error.Types.NotFound)); } }