Example #1
0
        public string BurnDown()
        {
            SetSite(initSiteSettings: true, setSiteIntegration: true);
            ViewModes.Set(Site.SiteId);
            switch (Site.ReferenceType)
            {
            case "Issues": return(IssueUtilities.BurnDown(ss: Site.SiteSettings));

            default: return(HtmlTemplates.Error(Error.Types.NotFound));
            }
        }
Example #2
0
        public string BurnDownJson()
        {
            SetSite(initSiteSettings: true, setSiteIntegration: true);
            ViewModes.Set(Site.SiteId);
            switch (Site.ReferenceType)
            {
            case "Issues": return(IssueUtilities.BurnDownJson(ss: Site.SiteSettings));

            default: return(Messages.ResponseNotFound().ToJson());
            }
        }
Example #3
0
        public string GanttJson()
        {
            SetSite();
            ViewModes.Set(Site.SiteId);
            switch (Site.ReferenceType)
            {
            case "Issues": return(IssueUtilities.GanttJson(
                                      ss: Site.IssuesSiteSettings(ReferenceId, setAllChoices: true)));

            default: return(HtmlTemplates.Error(Error.Types.NotFound));
            }
        }
Example #4
0
        public string GanttJson()
        {
            SetSite();
            ViewModes.Set(Site.SiteId);
            switch (Site.ReferenceType)
            {
            case "Issues": return(IssueUtilities.GanttJson(
                                      ss: Site.IssuesSiteSettings(
                                          ReferenceId, setAllChoices: true, setSiteIntegration: true)));

            default: return(Messages.ResponseNotFound().ToJson());
            }
        }
Example #5
0
        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));
            }
        }
Example #6
0
        public string ImageLib()
        {
            SetSite();
            ViewModes.Set(Site.SiteId);
            switch (Site.ReferenceType)
            {
            case "Issues": return(IssueUtilities.ImageLib(
                                      ss: Site.IssuesSiteSettings(
                                          ReferenceId, setAllChoices: true, setSiteIntegration: true)));

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

            default: return(HtmlTemplates.Error(Error.Types.NotFound));
            }
        }
Example #7
0
        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());
            }
        }
        public string Index()
        {
            if (ReferenceId == 0)
            {
                return(SiteUtilities.SiteTop());
            }
            SetSite(initSiteSettings: true, setSiteIntegration: 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));
            }
        }