Issue/567 (#568)
* Correctly manage page count when Page size = 0 * make =>TODO: Need to change the api to support full list Manage to support full list when pagesize is unknow
This commit is contained in:
@@ -7,7 +7,11 @@ namespace Microsoft.eShopWeb.ApplicationCore.Specifications
|
||||
{
|
||||
public CatalogFilterPaginatedSpecification(int skip, int take, int? brandId, int? typeId)
|
||||
: base()
|
||||
{
|
||||
{
|
||||
if (take == 0)
|
||||
{
|
||||
take = int.MaxValue;
|
||||
}
|
||||
Query
|
||||
.Where(i => (!brandId.HasValue || i.CatalogBrandId == brandId) &&
|
||||
(!typeId.HasValue || i.CatalogTypeId == typeId))
|
||||
|
||||
Reference in New Issue
Block a user