title: How to get base url of the site in MVC
body: <p>I want to send an email to the user where he can click on link to transfer to my site. I don't want to hard code the url in my Email Templates. I want this dynamic in a sense that whatever the environment it will send the related url. Like If I am on the development environment it send something like <code>http://localhost:port</code> or in production send the actual website url. <code>http://www.domain.com</code></p>
  
  <p>I just need to know how can I save it in <code>DynamicViewBag</code> in MVC Action. Any suggestion plz?</p>