How to pass all the local variables in one asp.net controller to view
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?
You will have to explicitly pass them to the view - using a view model.
精彩评论