private bool CheckIfBookingIsPossible(BookingData data) { Random r = new Random(); if (r.Next() % 2 == 0) { return(true); } return(false); }
public bool MakeBooking(BookingData data) { // TODO: check if it's possible to make booking if (!CheckIfBookingIsPossible(data)) { return(false); } bookings.Add(data); return(true); }