Aggiunta stored da testare x eliminazione IstKIT

This commit is contained in:
Samuele Locatelli
2025-04-12 08:27:13 +02:00
parent f5508bc5c3
commit 3b44311f6a
3 changed files with 37 additions and 21 deletions
+19
View File
@@ -1686,6 +1686,25 @@ namespace MP.Data.Controllers
return fatto;
}
/// <summary>
/// Effettua il task di eliminazione PODL KIT + istanze + riattivazione PODL originali disattivate tramite stored
/// </summary>
/// <param name="IdxPODL">IdxPODL parent</param>
public bool PodlIstKitDelete(int IdxPODL)
{
bool answ = false;
using (var dbCtx = new MoonProContext(_configuration))
{
var pIdxPODL = new SqlParameter("@IdxPODL", IdxPODL);
var dbResult = dbCtx
.Database
.ExecuteSqlRaw("EXEC dbo.stp_PodlIstKit_delete @IdxPODL", pIdxPODL);
answ = true;
}
return answ;
}
/// <summary>
/// Update Record
/// </summary>