public string TimeSeriesJson() { SetSite(); ViewModes.Set(Site.SiteId); switch (Site.ReferenceType) { case "Issues": return(IssueUtilities.TimeSeriesJson( ss: Site.IssuesSiteSettings(ReferenceId, setAllChoices: true))); case "Results": return(ResultUtilities.TimeSeriesJson( ss: Site.ResultsSiteSettings(ReferenceId, setAllChoices: true))); default: return(HtmlTemplates.Error(Error.Types.NotFound)); } }
public string TimeSeriesJson() { SetSite(); ViewModes.Set(Site.SiteId); switch (Site.ReferenceType) { case "Issues": return(IssueUtilities.TimeSeriesJson( ss: Site.IssuesSiteSettings( ReferenceId, setAllChoices: true, setSiteIntegration: true))); case "Results": return(ResultUtilities.TimeSeriesJson( ss: Site.ResultsSiteSettings( ReferenceId, setAllChoices: true, setSiteIntegration: true))); default: return(Messages.ResponseNotFound().ToJson()); } }