I need to generate a link to an action and send the link by email. I'd like to call something like this:
public string GetAbsolutePath(string actionName, string controllerName, string id)
{
// Somehow generate the absolute path
}
I think I can use VirtualPathUtility.ToAbsolute(string virtualPath) but I'm not sure how to get the virtual path either.