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)); } }
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()); } }
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)); } }
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()); } }
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 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)); } }
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)); } }