Add consumption entity and use strongly typed ids
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user