Skip to content

Commit

Permalink
feat: order by latst date
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Mar 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 0596155 commit 60505cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions App/Modules/Bookings/Data/BookingRepository.cs
Original file line number Diff line number Diff line change
@@ -39,6 +39,7 @@ public async Task<Result<IEnumerable<BookingPrincipal>>> Search(BookingSearch se
}

var result = await query
.OrderByDescending(x => x.Date)
.Skip(search.Skip)
.Take(search.Limit)
.ToArrayAsync();

0 comments on commit 60505cd

Please sign in to comment.