Exemple #1
0
        public string Delete()
        {
            SetSite();
            switch (ReferenceType)
            {
            case "Sites": return(SiteUtilities.Delete(
                                     ss: Site.SitesSiteSettings(ReferenceId),
                                     siteId: ReferenceId));

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

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

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

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