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());
        }
        public async Task <ActionResult <BookingsTable> > PostBookingsTable(BookingsTable bookingsTable)
        {
            _context.BookingsTable.Add(bookingsTable);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (BookingsTableExists(bookingsTable.BookingId))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetBookingsTable", new { id = bookingsTable.BookingId }, bookingsTable));
        }