title: How can I get the URL for a controller method in ASP.NET Core
body: <p>I'm trying to avoid duplicating the URL patterns in my application. Currently I have them as annotations at the controller or its methods and I have a service that "knows" the patterns and can generate URLs for resources.</p>
  
  <p>So the problem is not to get the actual URL for a given request but to generate URLs for resources that can be passed to the client without hardcoding the pattern at several places in the application.</p>
  
  <p>I know the Play framework  (Scala/Java) and its "reverse routes". Is there something like that in ASP.NET Core?</p>