Sorry bout the vague question, I’m not sure how to succinctly phrase my problem.
I have a ASPX MVC V3 project.
The walkthrough of a form submission goes
CreateCustomerview holds the form and is viewed by the customer- Customer submits form
- Form POST to
CreateCustomerand in turn calls theCreateCustomermethod with the[HttpPost]tag. - The
[HttpPost] CreateCustomer()method calls anexternal CreateCustomer service. - The
external CreateCustomer servicereturns anSuccessObject - ?????????
- I show the
CreateCustomerResultpage which uses theSuccessObject.
I don’t know/understand how to do step 6.
I’m in the controller, in the CreateCustomer method, I have the object I want to show, how do I move from CreateCustomer to CreateCustomerResult?
I tried to use RedirectToAction but it didn’t allow me to pass the object along with it. I also think this is the wrong method to use?
Any thoughts?
Once again sorry if this seems a bit vague, I think I’m confused here.
Regards
you can do like this. Return your results view in
HttpPostmethod