Adding curly braces for if statements
This commit is contained in:
1 parent
04530db118
commit
fe0471eea4
1 file changed
+4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user