public string ImageLibNext() { SetSite(); switch (Site.ReferenceType) { case "Issues": return(IssueUtilities.ImageLibNext( ss: Site.IssuesSiteSettings(ReferenceId, setSiteIntegration: true), offset: Forms.Int("ImageLibOffset"))); case "Results": return(ResultUtilities.ImageLibNext( ss: Site.ResultsSiteSettings(ReferenceId, setSiteIntegration: true), offset: Forms.Int("ImageLibOffset"))); default: return(Messages.ResponseNotFound().ToJson()); } }