This commit is contained in:
@@ -21,7 +21,7 @@ public static class DeleteCar
|
||||
ILoggerFactory loggerFactory,
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
var rows = await dbContext.Cars
|
||||
int rows = await dbContext.Cars
|
||||
.Where(x => x.Id == new CarId(id))
|
||||
.ExecuteDeleteAsync(cancellationToken);
|
||||
|
||||
@@ -32,7 +32,7 @@ public static class DeleteCar
|
||||
|
||||
if (rows > 1)
|
||||
{
|
||||
var logger = loggerFactory.CreateLogger(nameof(DeleteCar));
|
||||
ILogger logger = loggerFactory.CreateLogger(nameof(DeleteCar));
|
||||
logger.LogWarning("Deleted '{DeletedRowCount}' rows for id '{CarId}'", rows, id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user