public async Task SendOrderDoneMessage(CarOrderConfirmedMessage model) { _kafkaService.SendEvent(KafkaConstants.Order_Topic, KafkaConstants.Car_Order_Done_Event, _messageSerializer.Serialize(new CarOrderConfirmedMessage() { TransactionId = model.TransactionId, CarRentId = model.CarRentId })); }
public async Task ConfirmCarOrder(CarOrderConfirmedMessage model) { await _orderRepository.ConfirmCarOrder(model.TransactionId, model.CarRentId); HandleConfirmedOrder(model.TransactionId); }