public async Task <IActionResult> PutPurchaseorder9144(int id, PurchaseOrder9144 purchaseorder9144) { if (id != purchaseorder9144.ProductID) { return(BadRequest()); } _context.Entry(purchaseorder9144).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!Purchaseorder9144Exists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutOrderline9144(int id, Orderline9144 orderline9144) { if (id != orderline9144.Orderid) { return(BadRequest()); } _context.Entry(orderline9144).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!Orderline9144Exists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutClientaccount9144(int id, Account9144 clientaccount9144) { if (id != clientaccount9144.acctId) { return(BadRequest()); } _context.Entry(clientaccount9144).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!Clientaccount9144Exists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutOrder9144(int id, Order9144 o) { if (id != o.Orderid) { return(BadRequest()); } _context.Entry(o).State = EntityState.Modified; try { _context.Order9144.FromSqlRaw("EXEC FULLFILL_ORDER " + "@PORDERID = " + id + ", @PACCOUNTID = " + o.Userid); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!Order9144Exists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutAuthorisedperson9144(int id, AuthorisedPerson9144 authorisedperson9144) { if (id != authorisedperson9144.userID) { return(BadRequest()); } _context.Entry(authorisedperson9144).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!Authorisedperson9144Exists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }