public Task <ReservationDetails> GetVersion(Guid id, [FromQuery] GetReservationDetailsAtVersion request)
    {
        if (request == null)
        {
            throw new ArgumentNullException(nameof(request));
        }

        return(queryBus.Send <GetReservationAtVersion, ReservationDetails>(GetReservationAtVersion.Create(id, request.Version)));
    }
 public Task <ReservationDetails> GetVersion(Guid id, [FromQuery] GetReservationDetailsAtVersion request)
 {
     Guard.Against.Null(request, nameof(request));
     return(queryBus.Send <GetReservationAtVersion, ReservationDetails>(GetReservationAtVersion.Create(id, request.Version)));
 }