Beispiel #1
0
 private PlaceOrderCommand GetPlaceOrderCommand(PlaceOrderRequest request)
 {
     return(new PlaceOrderCommand
     {
         ContactInfo = _orderMapper.MapFromRequest(request.ContactInfo),
         ShippingAddress = _orderMapper.MapFromRequest(request.ShippingAddress),
         BillingAddress = _orderMapper.MapFromRequest(request.BillingAddress),
         ChosenShippingMethodName = request.ChosenShippingMethodName,
         ChosenPaymentMethodName = request.ChosenPaymentMethodName,
         PaymentCard = _orderMapper.MapFromRequest(request.PaymentCard),
         OrderLines = _orderMapper.MapFromRequest(request.OrderLines)
     });
 }