title: unique slug routing with different controllers in asp.net mvc 5
body: <p>i have a use case where i want to use similar slug urls for different controller routes
  like</p>
  <pre><code>[Route(&quot;~/{prodSlug:prod}&quot;)]
  ControllerAction1
  
  [Route(&quot;~/{CatSlug:cat}&quot;)]
  ControllerAction2
  
  [Route(&quot;~/{users:user}&quot;)]
  ControllerAction3
  </code></pre>
  <p>etc....</p>
  <p>now i have defined different custom constraints and they match true or false based on database dictionary
  but still i am getting error when request is completed.</p>
  <pre><code>Multiple controller types were found that match the URL. This can happen if attribute routes on multiple controllers match the requested URL.
  
  The request has found the following matching controller types:
  MrnMrsPetFoodFront.Controllers.CategoryController
  MrnMrsPetFoodFront.Controllers.ProductController
  </code></pre>
  <p>the reason i saw for this is mvc is not stopping once a route was found in categoryconstraint and went on with products and others till end
  is their anyway to stop this once a match is found or not possible with mvc 5?
  I know i can feed route constraints on <em><strong>RouteConfig</strong></em> and build a regex based match, but that will only work with application startup and is not a viable solution when the number of links can go up to 10k or 50k or more with time.</p>