Esempio n. 1
0
        public string Histories()
        {
            SetSite(initSiteSettings: true);
            switch (ReferenceType)
            {
            case "Sites": return(SiteUtilities.Histories(siteModel: Site));

            case "Issues": return(IssueUtilities.Histories(
                                      ss: Site.SiteSettings, issueId: ReferenceId));

            case "Results": return(ResultUtilities.Histories(
                                       ss: Site.SiteSettings, resultId: ReferenceId));

            case "Wikis": return(WikiUtilities.Histories(
                                     ss: Site.SiteSettings, wikiId: ReferenceId));

            default: return(Messages.ResponseNotFound().ToJson());
            }
        }