Am I missing something fundamental to the principals of MVC or am I going mad?
If I have a view that displays a list of books and a list of authors, I have to create class that would have the list of Books and list of authors as properties. Right?
I would then strongly type the view to use this class.
Now I want to create a new page with the same listings but that also has a list of promotions. Do I need to create another class with a list of Books property, a list of authors property and a list of promotions property?
If I am creating classes for all the views I am creating a hell of a lot of extra work. Am I supposed to be creating strong typed partials for each of these? What if the layout differs each time?
Currently I have a BaseViewData class that is used by all the views as it contains some common properties. However, I am now struggling to get other items in without completely bloating the BaseViewData class.
Please can someone help me understand the theory that all the simple examples don't cover.