BinaryStudio.ClientManager.WebUi.Extensions.HtmlHelperExtensions.SkypeLink C# (CSharp) Method

SkypeLink() public static method

public static SkypeLink ( this helper, string phone, string text = null ) : System.Web.Mvc.MvcHtmlString
helper this
phone string
text string
return System.Web.Mvc.MvcHtmlString
        public static MvcHtmlString SkypeLink(this HtmlHelper helper, string phone, string text = null)
        {
            var tag = new TagBuilder("a");
            tag.AddCssClass("icon-skype");
            tag.Attributes.Add("href", "skype:{0}?call".Fill(phone));
            return MvcHtmlString.Create(tag.ToString(TagRenderMode.Normal));
        }
HtmlHelperExtensions