File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -29,26 +29,6 @@ public ProductDb[] GetAllByCategoryId(int id)
2929 return this . dataContext . Products . Where ( p => p . CategoryId == id ) . ToArray ( ) ;
3030 }
3131
32- // New method for paging with category filter
33- public ProductDb [ ] GetPagedProductsByCategoryId ( int categoryId , int pageNumber , int pageSize )
34- {
35- return this . dataContext . Products
36- . Where ( p => p . CategoryId == categoryId )
37- . Skip ( ( pageNumber - 1 ) * pageSize )
38- . Take ( pageSize )
39- . ToArray ( ) ;
40- }
41-
42- // New method for paging with supplier filter
43- public ProductDb [ ] GetPagedProductsBySupplierId ( int supplierId , int pageNumber , int pageSize )
44- {
45- return this . dataContext . Products
46- . Where ( p => p . SupplierId == supplierId )
47- . Skip ( ( pageNumber - 1 ) * pageSize )
48- . Take ( pageSize )
49- . ToArray ( ) ;
50- }
51-
5232 public ProductDb [ ] GetAllBySupplierId ( int id )
5333 {
5434 return this . dataContext . Products . Where ( p => p . SupplierId == id ) . ToArray ( ) ;
You can’t perform that action at this time.
0 commit comments