Do action methods require a view file (.cshtml)?
Do I have to create one for each method I create, or is it optional?
For example, if I do an HTTP post, and do a redirect to a different action method, a view file is not required, is this correct?
Do action methods require a view file (.cshtml)?
Do I have to create one for each method I create, or is it optional?
For example, if I do an HTTP post, and do a redirect to a different action method, a view file is not required, is this correct?
Correct. You don't need a view for an action.
In MVC, an action is whatever you make of it; it's taking a request, performing an action and returning a response.
What you do in the action is up to you, and there is no requirement for a view to exist or for you to return one.