mccalltd / AttributeRouting

Define your routes using attributes on actions in ASP.NET MVC and Web API.
http://mccalltd.github.io/AttributeRouting/
MIT License
416 stars 89 forks source link

how to store subdomain each RouteValues? #281

Closed Mischi closed 10 years ago

Mischi commented 10 years ago

Hi, i'm trying to implement a multi-tenant web application where each tenant is identified by a subdomain.

Example: mandant1.example.com mandant2.example.com

Is there a way to populate the subdomain to the RouteValues collection, so i have easy access to them in the controller?

Regards, Fabian