I have a very typical situation in any application, where i have the following functionality:
- create new record
- edit existing record
- so other irrelevant actions
IMO, creating and editing should be served by the same view, but different actions. But it appears that I have to have the action name match the view name….would you use partial views for this? I would rather not complicate this scenario – which is very simple and appears in virtually every web app.
Action can return a view with a diferent name this way:
If you don’t specify the view name (View(“”) then the view will be the view with the action name