let's say I have the following dictionary :
public Dictionary<Room, List<Booking>> rooms = new Dictionary<Room, List<Booking>>();
I need to get all available bookings regardless of the room, using lambda expression.
for example I need to do the same as the following code
List<Booking> allBookings = new List<Booking>();
foreach (List<Booking> listOfBooking in rooms.Values)
foreach (Booking bookingItem in listOfBooking)
allBookings.Add(bookingItem);
any Ideas ?