public void CreateOrder(string orderRequestJson) { MundiPaggOrder mundiPaggOrder = MundiPaggOrderFactory.Create(orderRequestJson.GetKeyAndValuesToDictionary(), _customerPropertyMappings, _paymentPropertyMappings, _itemPropertyMappings, _orderPropertyMappings); var orderRequest = OrderRequestFactory.Create(mundiPaggOrder); var createOrderRequestCommand = new CreateOrderRequestCommand( orderRequest.Id, DateTime.Now); _bus.SendCommand(createOrderRequestCommand); AddOrderRequest(orderRequest); }
public async Task <ActionResult <CreateOrderRequestVm> > Create(CreateOrderRequestCommand command) { return(await Mediator.Send(command)); }