Exemplo n.º 1
0
        public string Editor()
        {
            SetSite();
            switch (ReferenceType)
            {
            case "Sites": return(SiteUtilities.Editor(ReferenceId, clearSessions: true));

            case "Issues": return(IssueUtilities.Editor(
                                      ss: Site.IssuesSiteSettings(ReferenceId),
                                      issueId: ReferenceId,
                                      clearSessions: true));

            case "Results": return(ResultUtilities.Editor(
                                       ss: Site.ResultsSiteSettings(ReferenceId),
                                       resultId: ReferenceId,
                                       clearSessions: true));

            case "Wikis": return(WikiUtilities.Editor(
                                     ss: Site.WikisSiteSettings(ReferenceId),
                                     wikiId: ReferenceId,
                                     clearSessions: true));

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