Example #1
0
        public IActionResult PaymentUpdate(OrderPaymentForm payment)
        {
            try {
                payment.ToOrderForm(_OrderService.CurrentOrder());
                _OrderService.SubmitCurrentOrder();
            }
            catch (Exception) {
                return(Content("Something went wrong."));
            }

            return(RedirectToAction("Complete"));
        }
Example #2
0
        public IActionResult Payment()
        {
            var paymentForm = OrderPaymentForm.FromOrderForm(_OrderService.CurrentOrder());

            return(View(paymentForm));
        }