/// <summary> /// Execute the <see cref="Action"/>s on this object.. /// </summary> /// <param name="context">The <see cref="IMansionWebContext"/>.</param> /// <param name="form">The <see cref="Form"/>.</param> /// <param name="step">The <see cref="Step"/>.</param> protected static void ExecuteActions(IMansionWebContext context, Form form, Step step) { // validate arguments if (context == null) throw new ArgumentNullException("context"); if (form == null) throw new ArgumentNullException("form"); // first execute actions on step step.DoExecuteActions(context, form, step); // finally execute actions on form form.DoExecuteActions(context, form, step); }