예제 #1
0
        public IEnumerable <TripDto> GetTrips()
        {
            _logger.LogInformation("Getting Trips");
            var results = _service.GetTrips();

            _logger.LogInformation("Finished getting trips");
            return(results);
        }
        public async Task <IEnumerable <TripDto> > GetTrips()
        {
            var trips = await tripsService.GetTrips();

            return(mapper.Map <IEnumerable <TripDto> >(trips));
        }