public async Task <bool> CheckHighDemandAsync(DateTimeOffset date) { bool holiday = USHolidays.IsPublicHoliday(date.LocalDateTime); int?estimatedRentals = await _rentalsRepository.EstimateRentalsAsync(date, false, holiday); // We have enough employees in the rentals area to handle about 150 rentals without a line // forming. If we estimate more than 150 rentals, let's assume it's going to be a busy day. return(estimatedRentals.HasValue ? estimatedRentals.Value > 150 : false); }