Castle.MonoRail.Framework.WizardActionProvider.HasRequiredSessionData C# (CSharp) Method

HasRequiredSessionData() protected method

Determines whether all wizard specific information is on the user session.
protected HasRequiredSessionData ( Controller controller ) : bool
controller Controller The controller.
return bool
		protected bool HasRequiredSessionData(Controller controller)
		{
			String wizardName = WizardUtils.ConstructWizardNamespace(controller);

			IRailsEngineContext context = controller.Context;

			return (context.Session.Contains(wizardName + "currentstepindex") && 
			        context.Session.Contains(wizardName + "currentstep"));
		}