I have a controller with that I want to pass off some data to a view.
The view is strongly typed like:
System.Web.Mvc.ViewPage<SomeObject>
Now when I call the following in the controller:
return View("SomeAction", someObject);
I want it to enforce that I need to pass in 'someObject'.
Eg. I want the following to fail and not compile:
View("SomeAction");
No matter what, the expected object must always be passed to the view.
Is this possible or am I totally off base?