title: How to get the URL of the Action without parameters in ASP.NET MVC
body: <p>I have a ASP.NET MVC Web application that runs in a virtual directory on IIS.
  In the application, I have an Action which takes a parameter named Id.</p>
  
  <pre><code>public class MyController : MyBaseController 
  {
      public ActionResult MyAction(int id)
      {
          return View(id);
      }
  }
  </code></pre>
  
  <p>When I call the Action with the parameter 123 the resulting URL is like this:</p>
  
  <pre><code>http://mywebsite.net/MyProject/MyController/MyAction/123
  </code></pre>
  
  <p>In the <strong>base controller</strong>, how do I elegantly find the URL of the Action without any parameters? The string I'm trying to get is: <code>/MyProject/MyController/MyAction</code></p>
  
  <p>There are other questions asked about this but they do not cover these cases. For example <code>Request.Url.GetLeftPart</code> still gives me the Id.</p>