title: ASP.NET Web API generate URL using Url.Action
body: <p>How can I generate the same URL but in Web API?</p>
  <pre><code>var url = Url.Action(&quot;Action&quot;, &quot;Controller&quot;, new { product = product.Id, price = price }, protocol: Request.Url.Scheme);
  </code></pre>
  <p>P.S.</p>
  <p>The URL should be generated to an MVC controller/action but from within web API.</p>
  <p>So basically: make a get request to my <code>api/generateurl</code> and that will return an URL to:</p>
  <pre><code>http://example.com/controller/action?product=productId&amp;price=100
  </code></pre>