예제 #1
0
        public string New()
        {
            SetSite(siteOnly: true, initSiteSettings: true);
            switch (Site.ReferenceType)
            {
            case "Issues": return(IssueUtilities.EditorNew(Site.SiteSettings));

            case "Results": return(ResultUtilities.EditorNew(Site.SiteSettings));

            case "Wikis": return(WikiUtilities.EditorNew(Site.SiteSettings));

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