Пример #1
0
        public string CrosstabJson()
        {
            SetSite();
            ViewModes.Set(Site.SiteId);
            switch (Site.ReferenceType)
            {
            case "Issues": return(IssueUtilities.CrosstabJson(
                                      ss: Site.IssuesSiteSettings(
                                          ReferenceId, setAllChoices: true, setSiteIntegration: true)));

            case "Results": return(ResultUtilities.CrosstabJson(
                                       ss: Site.ResultsSiteSettings(
                                           ReferenceId, setAllChoices: true, setSiteIntegration: true)));

            default: return(Messages.ResponseNotFound().ToJson());
            }
        }
Пример #2
0
        public string CrosstabJson()
        {
            SetSite();
            ViewModes.Set(Site.SiteId);
            switch (Site.ReferenceType)
            {
            case "Issues": return(IssueUtilities.CrosstabJson(
                                      ss: Site.IssuesSiteSettings(
                                          ReferenceId, setAllChoices: true, setSiteIntegration: true)));

            case "Results": return(ResultUtilities.CrosstabJson(
                                       ss: Site.ResultsSiteSettings(
                                           ReferenceId, setAllChoices: true, setSiteIntegration: true)));

            default: return(HtmlTemplates.Error(Error.Types.NotFound));
            }
        }