Aggiunto display idx di ODL/PODL

This commit is contained in:
Samuele Locatelli
2022-11-09 15:00:25 +01:00
parent 9908327a12
commit 7c8ee74ec7
9 changed files with 130 additions and 6 deletions
+25
View File
@@ -859,6 +859,31 @@ namespace MP.Data.Controllers
await Task.Delay(1);
return dbResult;
}
/// <summary>
/// Recupero PODL da IdxOdl
/// </summary>
/// <param name="idxPODL"></param>
/// <returns></returns>
public PODLModel PODL_getByOdl(int idxODL)
{
PODLModel dbResult = new PODLModel();
using (var dbCtx = new MoonProContext(_configuration))
{
try
{
dbResult = dbCtx
.DbSetPODL
.AsNoTracking()
.Where(x => x.IdxOdl == idxODL)
.FirstOrDefault();
}
catch (Exception exc)
{
Log.Error($"Eccezione durante PODL_getByOdl{Environment.NewLine}{exc}");
}
}
return dbResult;
}
/// <summary>
/// Avvio setup ODL da PODL