mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 05:30: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) =>
|
||||
await dbContext.Events
|
||||
.Include(Eve => Eve.Organisation)
|
||||
.OrderByDescending(Eve => Eve.EventId)
|
||||
.Select(Eve => Eve.ToEventSummaryDto()) //EventSummaryDto
|
||||
.AsNoTracking()
|
||||
.ToListAsync());
|
||||
|
||||
Reference in New Issue
Block a user