public async Task <ActionResult <IEnumerable <ReservationDTO> > > GetReservationsByUserId(Guid userId)
        {
            try
            {
                if (userId == Guid.Empty)
                {
                    return(BadRequest(new { message = "Id is empty" }));
                }
                IEnumerable <Reservation> reservations = await reservationRepo.GetByExpressionAsync(res => res.UserId == userId);

                foreach (Reservation reservation in reservations)
                {
                    Flight flight = await flightRepo.GetAsyncByGuid(reservation.FlightId);

                    reservation.Flight = flight;
                }
                IEnumerable <ReservationDTO> reservationDTOs = mapper.Map <IEnumerable <ReservationDTO> >(reservations);
                MessageObject message = new MessageObject()
                {
                    Message = $"Reservaties voor user{userId} opgehaald."
                };
                await sender.Send(message);

                return(Ok(reservationDTOs));
            }
            catch (Exception ex)
            {
                return(RedirectToAction("HandleErrorCode", "Error", new
                {
                    statusCode = 404,
                    errorMessage = $"Could not find reservations for user with id {userId} : {ex}"
                }));
            }
        }