Refactor code to .NET8

This commit is contained in:
Michał Zieliski
2024-06-18 22:24:04 +02:00
parent c54b9b0e00
commit 3485ab26b0
10 changed files with 21 additions and 21 deletions

View File

@@ -208,7 +208,7 @@ public class LayersController : Controller
.ToList();
try
{
if (!importWorkerLayers.Any())
if (importWorkerLayers.Count == 0)
{
_logsController.AddEntry(new LogEntry
{
@@ -346,7 +346,7 @@ public class LayersController : Controller
}
string[] processTypes =
{
[
"T3-SingleSource",
"T3-SourceYearSummary",
"T3-MultiSourceSummary", // AA
@@ -354,7 +354,7 @@ public class LayersController : Controller
"T4-SingleSource",
"T1-R1",
"T4-R2"
};
];
foreach (var type in processTypes)
{
@@ -378,7 +378,7 @@ public class LayersController : Controller
.OrderBy(x => x.CreatedAt)
.ToList();
if (!processWorkerLayers.Any())
if (processWorkerLayers.Count == 0)
{
_logsController.AddEntry(new LogEntry
{