Asp.Net MVC - Common Data Across All Controllers
问题 The setup: (using Asp.Net MVC 2 RC, Entity Framework, SQL Server, VS2008) My buddy and I are working on a project that will have different domains pointing at it. We want to get the domain (website) out of the Request and use that to drive data. This website data needs to be part of all the controllers. Ex. Data for domain1.website.com will be different than data for domain2.website.com, and those will be different than data for website2.com. The look of the site is the same for all these,