public async Task SendOrderDoneMessage(FlightOrderConfirmedMessage model)
 {
     _kafkaService.SendEvent(KafkaConstants.Order_Topic, KafkaConstants.Flight_Order_Done_Event,
                             _messageSerializer.Serialize(new FlightOrderConfirmedMessage()
     {
         TransactionId   = model.TransactionId,
         FlightBookingId = model.FlightBookingId
     }));
 }
Esempio n. 2
0
        public async Task ConfirmFlightOrder(FlightOrderConfirmedMessage model)
        {
            await _orderRepository.ConfirmFlightOrder(model.TransactionId, model.FlightBookingId);

            HandleConfirmedOrder(model.TransactionId);
        }