mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 13:40:13 +01:00
feat: show last events first
uporządkowuje listę wydarzeń według EventId malejąco
This commit is contained in:
@@ -19,6 +19,7 @@ namespace WebApp.Endpoints
|
|||||||
group.MapGet("/", async (ApplicationDbContext dbContext) =>
|
group.MapGet("/", async (ApplicationDbContext dbContext) =>
|
||||||
await dbContext.Events
|
await dbContext.Events
|
||||||
.Include(Eve => Eve.Organisation)
|
.Include(Eve => Eve.Organisation)
|
||||||
|
.OrderByDescending(Eve => Eve.EventId)
|
||||||
.Select(Eve => Eve.ToEventSummaryDto()) //EventSummaryDto
|
.Select(Eve => Eve.ToEventSummaryDto()) //EventSummaryDto
|
||||||
.AsNoTracking()
|
.AsNoTracking()
|
||||||
.ToListAsync());
|
.ToListAsync());
|
||||||
|
|||||||
Reference in New Issue
Block a user