public static HtmlString CtrlButton(this HtmlHelper html, string viewName, string id, string label, string onClickFunction = "", string buttonType = "primary") { var ctrl = new CtrlButtonModel { ViewName = viewName, Id = id, Label = label, FunctionName = onClickFunction, ButtonType = buttonType }; return(new HtmlString(ctrl.GetHtml())); }
public static HtmlString CtrlButton(this HtmlHelper html, string id, string value, string buttonType = "info", string evtOnClick = "", bool disabled = false) { var ctrl = new CtrlButtonModel(id, value, buttonType, evtOnClick, disabled); return(new HtmlString(ctrl.GetHtml())); }