Fix alias upsert

This commit is contained in:
Samuele Locatelli
2024-02-23 12:40:01 +01:00
parent 417d857547
commit b3a9cbbfd8
@@ -172,14 +172,14 @@ namespace EgtBEAMWALL.DataLayer.Controllers
{
// update, vers 1...
localDbCtx.Entry(item2update).CurrentValues.SetValues(updItem);
// Commit changes
localDbCtx.SaveChanges();
fatto = true;
}
else
{
localDbCtx.AliasList.Add(updItem);
}
// Commit changes
localDbCtx.SaveChanges();
fatto = true;
}
catch (Exception exc)
{