public async Task <ActionResult <TripsDto[]> > Get() { try { var results = await _eventRepository.GetTrips(); var mappedEntities = _mapper.Map <TripsDto[]>(results); return(Ok(mappedEntities)); } catch (Exception) { return(this.StatusCode(StatusCodes.Status500InternalServerError, "Database Failure")); } }