public static MvcHtmlString ActionSuccess(this HtmlHelper html, string message) { return(message != null?AlertExtensions.Alert(html, AlertType.Success, message) : MvcHtmlString.Create("")); }
public static MvcHtmlString ModelValidationSummary(this HtmlHelper html, ModelStateDictionary state) { return(!state.IsValid ? AlertExtensions.Alert(html, state) : MvcHtmlString.Create("")); }
public static MvcHtmlString ActionValidation(this HtmlHelper html, List <string> messages) { return((messages != null && messages.Count > 0) ? AlertExtensions.Alert(html, AlertType.Warning, messages) : MvcHtmlString.Create("")); }