title: ASP.Net MVC Routing - using same pattern for different controllers
body: <p>Say I have an ASP.Net MVC site with products and categories, and I want these urls...</p>
  <h3>Products:</h3>
  <ul>
  <li>Fruitshop.com/super-tasty-apple</li>
  <li>Fruitshop.com/squishy-orange</li>
  <li>Fruitshop.com/worm-infested-apple</li>
  <li>Fruitshop.com/megaorange</li>
  </ul>
  <h3>Categories:</h3>
  <ul>
  <li>Fruitshop.com/apples</li>
  <li>Fruitshop.com/oranges</li>
  </ul>
  <p>For each product/category in the database, I save the slug (or whatever you call it), like &quot;super-delicous-apple&quot; or &quot;apples&quot;.</p>
  <p>There is no pattern or regular expression(that I can see, anyway), that allow me to determine just by looking at the url, if it is a product or a category. I need to look in the database to know.</p>
  <p>What would be a good way to approach this?</p>
  <ol>
  <li>At application startup, register the route of every single product and category</li>
  <li>Create some code that handles the requests, and look up the slug in the database</li>
  <li>??</li>
  </ol>
  <p>Nevermind caching, refreshing routing-table etc for now. :)</p>
  <p>Feel free to edit my question title, if you feel there is a more appropriate title for this question - this was the best I could come up with.</p>