嗨,我有这个 Bookings 对象
Booking abc = new Booking { date = DateTime.Today, timeslot= timeslot[1], venue = venue};
waiter xyz = new waiter { id = 1, name = "xyz" };
xyz.bookedList = new List<Booking>();
xyz.bookedList.Add(bookingxyz);
我正在循环上面的代码。我想避免基于日期和时间段的重复预订,我该怎么做?