title: ASP.NET Core UrlHelper and how it works
body: <p>I'm rather new to ASP.NET Core, and right now I am trying to get a grasp on how UrlHelper works in general.</p>
  
  <p>In my controller, I want to create an absolute URL to another action in the same controller, e.g. <code>http://localhost:PORT/api/controller/action</code>. The question is now, how do I do it?</p>
  
  <p>I have tried with the following:</p>
  
  <pre><code>var urlHelper = new UrlHelper(new ActionContext());
  var url = urlHelper.Action("ACTION", "CONTROLLER");
  </code></pre>
  
  <p>Furthermore, what are those different contexts like <code>ActionContext</code>?</p>