public static MvcHtmlString ConstructIcon(IconParameters iconParameters) { var htmlStr = string.Format("<i class='{0} {1}'></i>", _iconCssClass[iconParameters.ButtonIcon], _iconColorCssClass[iconParameters.ButtonIconColor]); return(new MvcHtmlString(htmlStr)); }
public static MvcHtmlString Badge(this HtmlHelper helper, BadgeType badgeType, IconParameters icon, string text) { return(BadgeConstructor.ConstructBadge(badgeType, IconConstructor.ConstructIcon(icon) + " " + text)); }