Browse Source

Merge pull request #882 from brunobertechini/msdemo-productmgmt

Fix #881 msdemo: added default value for input.Sorting in ProductAppServi…
pull/897/head
Halil İbrahim Kalkan 8 years ago
committed by GitHub
parent
commit
7afc432b6b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      samples/MicroserviceDemo/modules/product/src/ProductManagement.Application/ProductManagement/ProductAppService.cs

2
samples/MicroserviceDemo/modules/product/src/ProductManagement.Application/ProductManagement/ProductAppService.cs

@ -28,7 +28,7 @@ namespace ProductManagement
await NormalizeMaxResultCountAsync(input);
var products = await _productRepository
.OrderBy(input.Sorting)
.OrderBy(input.Sorting ?? "Name")
.Skip(input.SkipCount)
.Take(input.MaxResultCount)
.ToListAsync();

Loading…
Cancel
Save