public IEnumerable <Trip> GetTripsByDate(DateTime?startDate, DateTime?endDate) { Errors.Clear(); IEnumerable <Trip> list = new List <Trip>(); try { _logger.Info(string.Format("Start retrieving trips between {0} and {1}", startDate, endDate)); list = _persister.GetTripBetweenStartDateAndEndDate(startDate, endDate); _logger.Info(string.Format("End retrieving trips between {0} and {1}", startDate, endDate)); } catch (Exception ex) { HandleException(ex, _logger); } return(list); }