Controller.View Method (Object)
Creates a ViewResult object by using the model that renders a view to the response.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Parameters
- model
- Type: System.Object
The model that is rendered by the view.
This overload of the View() method returns a ViewResult object that has an empty ViewName property. If you are writing unit tests for controller actions, take into account the empty ViewNameproperty for unit tests that do not take a string view name.
Show: