public static MvcHtmlString BuildCheckBox(this HtmlHelper htmlHelper, string name, bool?isChecked = false, Action <PFCheckBox> action = null) { var component = new PFCheckBox(); if (action != null) { action(component); } return(component.Html(htmlHelper, name, isChecked)); }
public static MvcHtmlString BuildCheckBoxFor <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, Action <PFCheckBox> action = null) { var component = new PFCheckBox(); if (action != null) { action(component); } return(component.Html(htmlHelper, expression)); }