public async Task <IActionResult> PutBookingsTable(Guid id, BookingsTable bookingsTable) { if (id != bookingsTable.BookingId) { return(BadRequest()); } _context.Entry(bookingsTable).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!BookingsTableExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }