Passing strongly typed views to pageviews in asp.net-mvc
3 answers
You usually don't need to manually pass it, but your model should have a parameterless constructor. Otherwise the framework will not know what values you would like to pass there.
As for passing the view name, just check all method overloads. If there is only a model as a parameter, then you can omit the view name.
0
a source to share