Skip to content

Commit fa21906

Browse files
committed
Remove unused methods
1 parent e03dfb5 commit fa21906

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

NorthwindCRUD/Services/ProductService.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)