Update edit modale porta

This commit is contained in:
Samuele Locatelli
2023-06-01 17:03:01 +02:00
parent aac9ef28c6
commit 72b762b4b5
8 changed files with 56 additions and 13 deletions
@@ -659,6 +659,9 @@ namespace WebDoorCreator.Data.Controllers
if (currRec != null) //if is not null edit the record found
{
currRec.Quantity = addEditRec.Quantity;
currRec.DoorExtCode= addEditRec.DoorExtCode;
currRec.DoorDescript= addEditRec.DoorDescript;
currRec.TypeId = addEditRec.TypeId;
localDbCtx.Entry(currRec).State = EntityState.Modified;
}
else //if is null add the record as new in the table