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

            case "Issues": return(IssueUtilities
                                  .Update(Site.IssuesSiteSettings(ReferenceId), ReferenceId));

            case "Results": return(ResultUtilities
                                   .Update(Site.ResultsSiteSettings(ReferenceId), ReferenceId));

            case "Wikis": return(WikiUtilities
                                 .Update(Site.WikisSiteSettings(ReferenceId), ReferenceId));

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