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