public async Task <bool> Handle(FlightReservationDeleteCommand request, CancellationToken cancellationToken)
        {
            var hotel = await _flightRepository.GetById(request.FlightReservationId);

            if (hotel == null)
            {
                return(false);
            }

            if (hotel.CanDelete())
            {
                await _flightRepository.DeleteById(request.FlightReservationId);

                return(true);
            }
            else
            {
                return(false);
            }
        }
 public Task <FlightReservation> Handle(FlightReservationLoadByIdQuery request, CancellationToken cancellationToken)
 {
     return(_repository.GetById(request.FlightReservationId));
 }