Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public async Task <ActionResult <CreateOrderRequestVm> > Create(CreateOrderRequestCommand command)
 {
     return(await Mediator.Send(command));
 }