I have a controller called "Parameters" which allows me to edit or view some parameters common to my object model. Creating / viewing is performed using several partial views - ShowParameters.ascx and CreateParameters.ascx.
I have several other controllers that use ShowParameters.ascx to display related parameters. It works great.
However, I have a problem with my partial view of CreateParameters.ascx. It invokes an action called CreateParameter in my Parameters controller to create the parameter. My problem is that I would like it to go back to the previous controller and display the Index view for that controller so that the user can see that this parameter is created.
How can my parameter controller determine which controller it should return to?
Thanks,
Tabby
Tubby
source share