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