Убран лишний код

This commit is contained in:
Olga Nemt 2023-11-09 09:31:50 +05:00
parent 1458c76c8d
commit 6380f21472

View File

@ -214,12 +214,9 @@ namespace AsbCloudInfrastructure.Services
var files = await reports.Select(r => r.IdFile).ToListAsync(token);
if (files.Any())
{
await fileService.DeleteAsync(files, token);
return await fileService.DeleteAsync(files, token);
}
db.ReportProperties.RemoveRange(reports);
return await db.SaveChangesAsync(token);
return 0;
}
}