How to create dynamic, multiple partial views using repository pattern in MVC
问题 I am trying to have a general home page that depending on the parameter passed to the control, different content (modules) will be displayed. For example, a user may select Kentucky from the menu and the id for Kentucky is 1. The home controller gets the id (1) and determines the possible modules for that state (a simple db call.) Perhaps there is an announcements module and a contacts module for the state. An announcements module could have several items but it's only one module. There would