コード例 #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);
        }
コード例 #2
0
 public async Task <ActionResult <CreateOrderRequestVm> > Create(CreateOrderRequestCommand command)
 {
     return(await Mediator.Send(command));
 }