public bool AreRequestedDaysAvailable(int spaceId, DateTime reserveDate, int reserveDays) { bool success = false; DateTime lastDate = reserveDate.AddDays(reserveDays); List <DateTime> datesBooked = resDAO.GetBookedDates(spaceId); foreach (DateTime dateTime in datesBooked) { if (!datesBooked.Contains(reserveDate) && !datesBooked.Contains(lastDate)) { success = true; } } return(success); }