public PageListObject <T> GetPagedList <T>(string query, Dictionary <string, string> sortAndOrder, int numberOfRecords, int pageNumber, object Params) { int offset = numberOfRecords * pageNumber; var Querries = QueryMaker.GetPagerQueries <T>(query, sortAndOrder, offset, numberOfRecords); string mainquery = Querries.Query; string countquery = Querries.CountQuery; return(PagedResults <T>(numberOfRecords, pageNumber, Params, offset, mainquery, countquery)); }