private void BuildRentAccountStepper() { Stepper2.CreatePageStepper("CancelStepper", null); Stepper2.Header = string.Format("Customer {0} - Add Rental Units (basket)", _customerService.GetCustomer(GetRentalBasket().CustomerAccountId).SurnameFirstName); Stepper2.ClearSteps(); Stepper2.AddStep("AddRentUnitStep1"); Stepper2.AddStep("AddRentUnitStep2"); Stepper2.AddStep("AddRentUnitStep3"); Stepper2.AddStep("AddRentUnitStep5"); Stepper2.AddStep("AddRentUnitStep6"); }
public ActionResult CreateCustomer() { Stepper2.CreatePageStepper("Index", "Add Customer"); Stepper2.AddStep("CreateCustomerStep1"); Stepper2.AddStep("CreateCustomerStep2"); Stepper2.AddStep("CreateCustomerStep3"); TempCustomer = new Customer { CustomerEmployer = new CustomerEmployer { EmployerId = -1 } }; return(RedirectToAction(Stepper2.NextStep())); }
public ActionResult AddNewAccount(int customerId) { TempRepository <NewAccountVM> .Entity = new NewAccountVM { CustomerId = customerId, StartDate = DateTime.Today }; var header = string.Format("Customer {0} - Add Account", _customerService.GetCustomer(customerId).SurnameFirstName); Stepper2.CreatePageStepper("CancelStepper", header); Stepper2.AddStep("AddAccount"); TempAccount = null; return(RedirectToAction(Stepper2.NextStep())); }