Skip to content

Commit

Permalink
Add additional order parameters for grids
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAman62 committed Sep 1, 2024
1 parent ed39063 commit a2d6762
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/GridBattle.Api/Api/GridApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ [FromServices] GridDbContext dbContext
)
)
.OrderByDescending(x => x.CreatedDateTime)
.ThenBy(x => x.Id)
.Skip(offset.Value)
.Take(limit.Value)
.ToListAsync();
Expand Down

0 comments on commit a2d6762

Please sign in to comment.