Removing the apply in the CatalogFilterPaginationSpecification

- This is so I can commit this to the repo as an example.
This commit is contained in:
Eric Fleming
2019-05-01 19:41:22 -04:00
parent 468df47c22
commit 0d606d1857
2 changed files with 1 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ namespace Microsoft.eShopWeb.ApplicationCore.Specifications
OrderByDescending = orderByDescendingExpression;
}
//Not used anywhere at the moment, but someone requested an example of setting this up.
protected virtual void ApplyGroupBy(Expression<Func<T, object>> groupByExpression)
{
GroupBy = groupByExpression;

View File

@@ -9,7 +9,6 @@ namespace Microsoft.eShopWeb.ApplicationCore.Specifications
(!typeId.HasValue || i.CatalogTypeId == typeId))
{
ApplyPaging(skip, take);
ApplyGroupBy(i => new { i.CatalogType });
}
}
}