Created
March 10, 2014 10:08
-
-
Save extstopcodepls/9462369 to your computer and use it in GitHub Desktop.
Simple link generation for registration or password recovery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private string GetLinkToAction(string actionName) | |
| { | |
| var confirmUrl = Request.Url.GetLeftPart(UriPartial.Authority) + Url.Action(actionName); | |
| return confirmUrl; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment