public static HtmlString ZurbSubmit(this HtmlHelper h, string linkText, object htmlAttributes = null, ZurbSize size = ZurbSize.Default, ZurbColor color = ZurbColor.Default) { /* attributes */ IDictionary<string, object> attributes = new RouteValueDictionary(); if (htmlAttributes != null) { attributes = HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes); } if (size != ZurbSize.Default) { AddClassToAttributes(attributes, size.ToString().ToLower()); } if (color != ZurbColor.Default) { AddClassToAttributes(attributes, color.ToString().ToLower()); } AddClassToAttributes(attributes, "button"); AddClassToAttributes(attributes, "radius"); return new HtmlString(string.Format("<button type=\"submit\" {0}>{1}</button>", AttributesToString(attributes), linkText)); }