I have a design question. I am implementing a purchase flow in my Web that has 4 steps:
A -> B -> C <-> D -> E
- A: Build a
PurchaseModelobject andPOSTit to B. - B: Shows a purchase summary.
- C, D: Login/register. This step is optional if the user is already logged in. The user can go from C to D and vice-versa.
- E: Post to paypal
I need the PurchaseModel travelling from A to E, so my question is:
How can I pass the PurchaseModel between controllers/views? What is the recommended solution in this case?
NOTE: A, B, C and D are controllers that have the attribute [AllowAnonymous].
UPDATE
Would be correct to store the PurchaseModel in a session variable in STEP B, and then use it in the other controllers?