Reputation: 51321
In asp.net mvc3, I've got a few local variables in one of the controller, is there any neat way to pass all these variables to view? Something like "locals()" in python?
Upvotes: 0
Views: 369
Reputation: 499152
You will have to explicitly pass them to the view - using a view model.
Upvotes: 1