public ViewResult SubmitOrder(CartFunctions cartFunctions, Order order) { if (ModelState.IsValid) { processOrder.OrderProcess(cartFunctions, order); cartFunctions.Clear(); return(View("End")); } else { return(View(order)); } }