public string Create() { SetSite(); switch (Site.ReferenceType) { case "Sites": return(SiteUtilities.Create( parentId: Site.SiteId, inheritPermission: Site.InheritPermission)); case "Issues": return(IssueUtilities.Create( ss: Site.IssuesSiteSettings(ReferenceId))); case "Results": return(ResultUtilities.Create( ss: Site.ResultsSiteSettings(ReferenceId))); default: return(Messages.ResponseNotFound().ToJson()); } }