public IActionResult Get() { var userName = User.Identity.Name; try { return(Ok(Mapper.Map <IEnumerable <TripViewModel> >(TravelRepository.GetTrips(userName)))); } catch (Exception ex) { Logger.LogError(ex, $"Error retrieving trips by traveler (username) \"{userName}\": {ex}"); } return(BadRequest()); }