update conf RIOC da testare

This commit is contained in:
Samuele Locatelli
2026-06-12 07:27:18 +02:00
parent 6105e76917
commit f192c35454
2 changed files with 20 additions and 0 deletions
+19
View File
@@ -112,6 +112,25 @@ namespace MP.IOC.Controllers
return "Errore interno del server";
//return StatusCode(500, "Errore interno del server");
}
#if false
if (string.IsNullOrEmpty(id)) return BadRequest("Missing ID");
try
{
// Il metodo ora restituisce direttamente il booleano logico
bool isEnabled = await IOCService.IobInsEnabAsync(id);
return isEnabled
? Ok("OK")
: UnprocessableEntity("NO");
}
catch (Exception ex)
{
Log.Error(ex, "Errore durante la verifica abilitazione per {Id}", id);
return StatusCode(500, "Errore interno del server");
}
#endif
}
/// <summary>
+1
View File
@@ -6,6 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP.RIOC</RootNamespace>
<Version>8.16.2606.1120</Version>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
</PropertyGroup>
<ItemGroup>