Exemple #1
0
 public void EditDemandPurchase(int id, [FromBody] DemandPurchase demandPurchase)
 {
     if (id == demandPurchase.DpId)
     {
         db.Entry(demandPurchase).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
         db.SaveChanges();
     }
 }
 public void EditDemandHeader(int id, [FromBody] DemandHeader demandHeader)
 {
     if (id == demandHeader.DphId)
     {
         db.Entry(demandHeader).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
         db.SaveChanges();
     }
 }