Skip to content

Commit

Permalink
Merge pull request #64 from IliyanIlievPH/63
Browse files Browse the repository at this point in the history
order bought vouchers by decending
  • Loading branch information
starkmsu authored Jun 11, 2020
2 parents 5d26e82 + cda1517 commit c462363
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public async Task<VouchersPage> GetByOwnerIdAsync(
var query = context.Vouchers.Where(v => v.OwnerId == ownerId);

var result = await query
.OrderByDescending(x => x.PurchaseDate)
.Skip(skip)
.Take(take)
.ToListAsync();
Expand Down

0 comments on commit c462363

Please sign in to comment.