Alex Rivera | Logout

ASP.Net MVC - post from one controller to another (action to action)

Asked 2010-04-30T16:30:37.130
13

Is is possible to do a post from an Action "Save" in a controller "Product" to an Action "SaveAll" in a controller "Category"??

And also passing a FormCollection as parameter

Edit
Report

1 Answer

5

I would either just update your categories in your repository from your Product controller Save method directly, or refactor the Save Categories functionality in its own method, and call that from both controller methods.

answered 2010-04-30T16:41:34.507

Your Answer