Using mvc3, is there some variable to inform if I came from a Create to Edit action?
If the routing is used as well in a GET I want a certain behavior, otherwise if the CreateAction has been fired I want to open a different context Edit.
Failed first solution: Creating a extra Action Edit, fires: The current request for action 'Edit' on controller type 'XController' is ambiguous between the two action methods.
More important, is there a misinterpretation of MVC? Does this solution sound weird to anyone? I’m facing nice doubts with mvc. 🙂
If you have 2 Edit methods, they must have different method inputs to differentiate them.
Or, just make the method into one with an optional parameter
I would also recommend painting a method attribute such as [HttpGet], [HttpPost], etc.