title: Using Url.Link with Attribute Routing in Webapi 2
body: <p>I want to add a Location header to my http response when using webapi 2. The method below shows how to do this using a named route. Does anyone know if you can create the Url.Link using Attribute Routing feature that was released as part of webapi 2?</p>
  
  <pre><code>string uri = Url.Link("DefaultApi", new { id = reponse.Id });
  httpResponse.Headers.Location = new Uri(uri);
  </code></pre>
  
  <p>Thanks in advance</p>