I have email templates with replacable tokens and constructing of email content from WCF service, the one of token have navigating url, the url of the Asp.net MVC site.
I need to generate dynamically Asp.net MVC action url from WCF service so I can place url in email templates.
The both application are hosted in the same web site (i.e. Under DefaultWebSite).
Right now I have set the base url in web.config app setting and construct the url by switch casing.
I am looking for batter solution by dynamically.
Copyright Notice:Content Author:「user3584627」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/40085559/generate-asp-net-mvc-action-url-from-wcf-service