Is there a built-in way of getting the full URL of an action?
I am looking for something like GetFullUrl("Action", "Controller")
that would return something like http://www.fred.com/Controller/Action
.
The reason I am looking for this is to avoid hardcoding URLs in automated emails that are generated so that the URLs can always be generated relative to the current location of the site.