Add consumption entity and use strongly typed ids
This commit is contained in:
@@ -16,7 +16,7 @@ public static class DeleteCar
|
||||
ApplicationDbContext dbContext,
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
var car = await dbContext.Cars.FindAsync([id], cancellationToken: cancellationToken);
|
||||
var car = await dbContext.Cars.FindAsync([new CarId(id)], cancellationToken: cancellationToken);
|
||||
|
||||
if (car is null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user