Example #1
0
        public Trip GetTrip(string tripName)
        {
            Errors.Clear();

            Trip trip = null;

            try
            {
                _logger.Info(string.Format("Start retrieving trip {0}", tripName));
                trip = _persister.GetTripByName(tripName);
                _logger.Info(string.Format("End retrieving trip {0}", tripName));
            }
            catch (Exception ex)
            {
                HandleException(ex, _logger);
            }

            return(trip);
        }