public static PaginationOUT getEntity01Table( PaginationIN p_in ) { using (var repo = new RepoEntity01( UOW.Create( ) )) { var InitialQuery = repo.GetActive().Where( x => x.name != "bb" ); var result = Pagination.GetPageData( InitialQuery, p_in ); return result; } }
static void testTablePagination( ) { var p_in = new PaginationIN { MaxItemsOnPage = 1, PageNumber = 1, TableColumns = new List<TableColumn> { new TableColumn{PropertyName = "name", SortAscending = false, FilterText = "cc"} ,new TableColumn{PropertyName = "date1", SortAscending = false, FilterText = ""/*"2013-01-01"*/ } } }; var result = ServiceEntity01.getEntity01Table( p_in ); }