private bool CheckDates(DateTime?startDate, DateTime?endDate, Event events) { return(startDate.HasValue && endDate.HasValue ? _dateComparer.EventDateIsBetweenStartAndEndDates(events.EventDate, startDate.Value, endDate.Value) : _dateComparer.EventDateIsBetweenTodayAndLater(events.EventDate)); }