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