Example #1
0
 public IActionResult ShippingUpdate(OrderShippingForm shipping)
 {
     shipping.ToOrderForm(_OrderService.CurrentOrder());
     _OrderService.CurrentOrder().ShippingPrice = OrderForm.Options.ShippingMethods[_OrderService.CurrentOrder().ShippingMethod];
     _OrderService.SaveCurrentOrder();
     return(RedirectToAction("Payment"));
 }
Example #2
0
        public IActionResult Shipping()
        {
            var shippingForm = OrderShippingForm.FromOrderForm(_OrderService.CurrentOrder());

            return(View(shippingForm));
        }