Comment utiliser MVC 3 @ Html.ActionLink dans le code c #

Je tiens à appeler l' @Html.ActionLink méthode à l'intérieur d'un c# fonction pour renvoyer une chaîne de caractères avec un lien sur elle.

Quelque chose comme ceci:

string a = "Email is locked, click " + @Html.ActionLink("here to unlock.", "unlock") ;

source d'informationauteur roncansan