Example #1
0
        public string Copy()
        {
            SetSite();
            switch (ReferenceType)
            {
            case "Sites": return(SiteUtilities.Copy(Site));

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

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

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