Add consumption entity and use strongly typed ids

This commit is contained in:
2024-08-17 18:00:23 +02:00
parent 4bfc57ef9f
commit d47e4c1971
19 changed files with 265 additions and 36 deletions

View File

@@ -19,7 +19,7 @@ public static class GetCars
CancellationToken cancellationToken)
{
var cars = await dbContext.Cars
.Select(x => new Response(x.Id, x.Name))
.Select(x => new Response(x.Id.Value, x.Name))
.ToListAsync(cancellationToken);
return TypedResults.Ok(cars);