New Angular based web version #1

Closed
thomas.nuyken wants to merge 150 commits from main into ddd
2 changed files with 12 additions and 6 deletions
Showing only changes of commit b07b0c1f0f - Show all commits

View File

@@ -25,14 +25,17 @@ public static class DeleteCar
.Where(x => x.Id == new CarId(id))
.ExecuteDeleteAsync(cancellationToken);
if (rows == 0)
{
return TypedResults.NotFound();
}
if (rows > 1)
{
var logger = loggerFactory.CreateLogger(nameof(DeleteCar));
logger.LogWarning("Deleted '{DeletedRowCount}' rows for id '{CarId}'", rows, id);
}
return rows > 0
? TypedResults.NoContent()
: TypedResults.NotFound();
return TypedResults.NoContent();
}
}

View File

@@ -25,14 +25,17 @@ public static class DeleteConsumption
.Where(x => x.Id == new ConsumptionId(id))
.ExecuteDeleteAsync(cancellationToken);
if (rows == 0)
{
return TypedResults.NotFound();
}
if (rows > 1)
{
var logger = loggerFactory.CreateLogger(nameof(DeleteConsumption));
logger.LogWarning("Deleted '{DeletedRowCount}' rows for id '{ConsumptionId}'", rows, id);
}
return rows > 0
? TypedResults.NoContent()
: TypedResults.NotFound();
return TypedResults.NoContent();
}
}