Browse Source

Adding curly braces for if statements

main
Steve Smith 7 years ago
committed by GitHub
parent
commit
fe0471eea4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Infrastructure/Data/SpecificationEvaluator.cs

4
src/Infrastructure/Data/SpecificationEvaluator.cs

@ -28,9 +28,13 @@ namespace Microsoft.eShopWeb.Infrastructure.Data
// Apply ordering if expressions are set
if (specification.OrderBy != null)
{
query = query.OrderBy(specification.OrderBy);
}
else if (specification.OrderByDescending != null)
{
query = query.OrderByDescending(specification.OrderByDescending);
}
// Apply paging if enabled
if (specification.isPagingEnabled)

Loading…
Cancel
Save