private bool CheckUnitAvilabilty(HostingUnit unit, DateTime entryDate, DateTime leaveDate) { for (; entryDate < leaveDate; entryDate = entryDate.AddDays(1)) { if (unit.GetDates(entryDate)) { return(false); } } return(true); }
private bool CheckUnitAvilabilty(HostingUnit unit, DateTime entryDate, DateTime leaveDate) { for (; entryDate < leaveDate; entryDate = entryDate.AddDays(1)) { if (unit.GetDates(entryDate)) { return(false); } } return(true); }