public Form(Action<FormBuilder> formBuilder, FormSettings settings, object htmlAttributes) { _settings = settings; if (htmlAttributes != null) HtmlAttributes = new HtmlAttributes(htmlAttributes); if (formBuilder != null) formBuilder(new FormBuilder(this)); }
public static Form Form(this HtmlHelper html, FormSettings settings, Action<FormBuilder> formBuilder, object htmlAttributes = null) { return new Form(formBuilder, settings, htmlAttributes); }