public IActionResult PaymentUpdate(OrderPaymentForm payment) { try { payment.ToOrderForm(_OrderService.CurrentOrder()); _OrderService.SubmitCurrentOrder(); } catch (Exception) { return(Content("Something went wrong.")); } return(RedirectToAction("Complete")); }
public IActionResult Payment() { var paymentForm = OrderPaymentForm.FromOrderForm(_OrderService.CurrentOrder()); return(View(paymentForm)); }