Endpoint to add a verspakket

This commit is contained in:
moarten
2026-04-17 22:02:25 +02:00
parent 0acc9a1f8e
commit a10bcfa1d6
17 changed files with 121 additions and 16 deletions

View File

@@ -13,10 +13,15 @@ namespace Lutra.Application.Supermarkten
{
var supermarkten = await context.Supermarkten
.AsNoTracking()
.Where(w => w.DeletedAt == null)
.OrderBy(s => s.Naam)
.Skip(request.Skip)
.Take(request.Take)
.Select(s => new Supermarkt { Naam = s.Naam })
.Select(s => new Supermarkt
{
Id = s.Id,
Naam = s.Naam
})
.ToListAsync(cancellationToken);
return new Response { Supermarkten = supermarkten };