title: Asp.net core UrlHelper returning nulls
body: <p>Im  building a simple api with asp.netcore 1.1 and trying to create hypermedia links. I have looked at </p>
  
  <p><a href="https://stackoverflow.com/questions/28341042/webapi-url-link-returning-null">WebAPI Url.Link() returning NULL</a> </p>
  
  <p>and a couple of similars, but none of those were of help.</p>
  
  <p>my controller is</p>
  
  <pre><code>[ApiVersion("1.0")]
  [Route("api/v{version:apiVersion}/organizers")]
  public class OrganizersController : Controller
  {
      [HttpGet, Route("{id:int}", Name = "get-organizers")]
      public IActionResult Get(int id)
      {
          try
          {
              var uri = Url.Link("default", new {id=2});
              var uri2 = Url.RouteUrl("default", new { controller = "Organizers", action = "get-organizers", id = 1 });
              (...)
          }
          (...)
  
       }
  </code></pre>
  
  <p>My startup looks like</p>
  
  <pre><code>    public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IApplicationLifetime appLifetime)
      {
          loggerFactory.AddConsole(Configuration.GetSection("Logging"));
          loggerFactory.AddDebug();
  
          //serilog
          loggerFactory.AddSerilog();
  
          app.UseMvc(opt=&gt;opt.MapRoute("default", "api/v{version:apiVersion}/{controller}/{action}/{id:int?}"));
          appLifetime.ApplicationStopped.Register(() =&gt; ApplicationContainer.Dispose());
      }
  </code></pre>
  
  <p>i have tried many permutations of the possible parameters including removing action, api, version, etc. still, i get null for both urls.</p>