user469652
user469652

Reputation: 51321

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?

Upvotes: 0

Views: 369

Answers (1)

Oded
Oded

Reputation: 499152

You will have to explicitly pass them to the view - using a view model.

Upvotes: 1

Related Questions