object GetData(int toSkip, int toTake) { switch (_data) { case "BrunvollView": { var temp = new NavigationRepository(db); object ab = temp.GetBrunvollViewData(c1Filter.filterString, toSkip, toTake); _recordCount = temp.RecordCount; return(ab); } case "Projekt": { var temp = new NavigationRepository(db); object ab = temp.GetProjektData(c1Filter.filterString, toSkip, toTake); _recordCount = temp.RecordCount; return(ab); } case "ProjektAnlagentyp": { var temp = new NavigationRepository(db); object ab = temp.GetProjektAnlagentypData(c1Filter.filterString, toSkip, toTake); _recordCount = temp.RecordCount; return(ab); } default: return(null); } }