This commit is contained in:
@@ -21,7 +21,7 @@ public static class DeleteConsumption
|
||||
ILoggerFactory loggerFactory,
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
var rows = await dbContext.Consumptions
|
||||
int rows = await dbContext.Consumptions
|
||||
.Where(x => x.Id == new ConsumptionId(id))
|
||||
.ExecuteDeleteAsync(cancellationToken);
|
||||
|
||||
@@ -32,7 +32,7 @@ public static class DeleteConsumption
|
||||
|
||||
if (rows > 1)
|
||||
{
|
||||
var logger = loggerFactory.CreateLogger(nameof(DeleteConsumption));
|
||||
ILogger logger = loggerFactory.CreateLogger(nameof(DeleteConsumption));
|
||||
logger.LogWarning("Deleted '{DeletedRowCount}' rows for id '{ConsumptionId}'", rows, id);
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ public static class GetConsumptions
|
||||
|
||||
List<ResponseDto> responses = [];
|
||||
|
||||
foreach (var consumptions in consumptionsByCar.Select(x => x.Value))
|
||||
foreach (List<Consumption> consumptions in consumptionsByCar.Select(x => x.Value))
|
||||
{
|
||||
for (int i = 0; i < consumptions.Count; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user