public async Task <IActionResult> PutOrderTb(int id, OrderTb orderTb) { if (id != orderTb.OrderId) { return(BadRequest()); } _context.Entry(orderTb).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!OrderTbExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }