title: Ninject injection based on a route data value
body: <p>We've got an ASP.NET MVC application, that has a number of different areas. There are 2 areas that use the same C# classes from our service layer, but target different underlying data. I want these services to get different dependencies based on a value in the route data. </p>
  
  <p>It's hard to explain, and I'm paraphrasing my class/area names. To illustrate:
  <img src="https://i.stack.imgur.com/vo4zX.png" alt="Call logic"></p>
  
  <p>When the 'Code' is in the route data, I want to get different dependencies injected to when it is not present. </p>
  
  <p>I understand there is the .When() method you can use to do conditional bindings, but I'm not sure how to get the route data from there. I could possibly also do it based on the area that it was called from, however thats not preferable in my instance (I think we may use the Code in that other area)</p>
  
  <p>Is this possible?</p>