public async Task <IActionResult> PutAccountpayment2177(int id, Accountpayment2177 accountpayment2177) { if (id != accountpayment2177.Accountid) { return(BadRequest()); } _context.Entry(accountpayment2177).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!Accountpayment2177Exists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutPurchaseorder2177(int id, Purchaseorder2177 purchaseorder2177) { if (id != purchaseorder2177.Productid) { return(BadRequest()); } _context.Entry(purchaseorder2177).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!Purchaseorder2177Exists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }