public virtual IWizardStep GetPreviousStep() { if (CurrentStep > 0) { _visitedSteps.Pop(); IWizardStep previousStep = _visitedSteps.Peek(); CurrentStep = WizardSteps.IndexOf(previousStep); return previousStep; } throw new WizardStepException("Invalid Wizard Step: " + (CurrentStep - 1)); }