public ActionResult AddCustomer(CustomerServiceReference.Customer customer) { int customerId = customerProxy.Create(customer); orderProxy.AddCustomer(orderId, customerId); tempOrderId = orderId; orderId = 0; CreateOrder(); return(RedirectToAction("Invoice")); }