public static HtmlString MakeImpersonateSinglePageHtmlLink(Person personToImpersonate) { if (personToImpersonate == null) { return(new HtmlString(String.Empty)); } string theLinkUrl = ImpersonateUserSinglePageUrlTemplate.ParameterReplace(personToImpersonate.PersonID); string linkHtmlTemplate = "<span class=\"glyphicon glyphicon-{0}\" aria-hidden=\"true\" title=\"Impersonate {1}\"></span>"; // I wish Bootstrap offered a "domino" or mask icon, but this is all I could come up with quickly. Feel free to change these! -- SLG string linkHtml = String.Format(linkHtmlTemplate, "user", personToImpersonate.GetFullNameFirstLast()); // Controller is actually irrelevant here string theHref = SitkaRoute <UserController> .BuildLinkFromUrl(theLinkUrl, linkHtml, $"impersonate user {personToImpersonate.GetFullNameFirstLast()}"); return(new HtmlString(theHref)); }