public string IndexJson() { SetSite(initSiteSettings: true); ViewModes.Set(Site.SiteId); switch (Site.ReferenceType) { case "Issues": return(IssueUtilities.IndexJson(ss: Site.SiteSettings)); case "Results": return(ResultUtilities.IndexJson(ss: Site.SiteSettings)); default: return(HtmlTemplates.Error(Error.Types.NotFound)); } }
public string IndexJson() { if (ReferenceType != "Sites") { return(Messages.ResponseNotFound().ToJson()); } SetSite(initSiteSettings: true, setSiteIntegration: true); ViewModes.Set(Site.SiteId); switch (Site.ReferenceType) { case "Issues": return(IssueUtilities.IndexJson(ss: Site.SiteSettings)); case "Results": return(ResultUtilities.IndexJson(ss: Site.SiteSettings)); default: return(Messages.ResponseNotFound().ToJson()); } }