<p>If you had to provide a wizard like form entry experience in mvc how would you abstract the page flow?</p>

[{'answer_id': 16337, 'author': 'Nick Berardi', 'author_id': 17, 'author_profile': 'https://Stackoverflow.com/users/17', 'pm_score': -1, 'selected': False, 'text': '<p>There are a couple ways, create an action for each step of the wizard process, or create a parameter that is passed in to the action method.  Like <em>step</em> that will allow you to know what the state of the wizard is in.</p>\n'}, {'answer_id': 33604, 'author': 'Matt Hinze', 'author_id': 2676, 'author_profile': 'https://Stackoverflow.com/users/2676', 'pm_score': 4, 'selected': True, 'text': '<p>Investigate the post-redirect-get pattern.</p>\n\n<p><a href="http://weblogs.asp.net/mhawley/archive/tags/MVC/default.aspx" rel="nofollow noreferrer">http://weblogs.asp.net/mhawley/archive/tags/MVC/default.aspx</a><br>\n<a href="http://devlicio.us/blogs/tim_barcz/archive/2008/08/22/prg-pattern-in-the-asp-net-mvc-framework.aspx" rel="nofollow noreferrer">http://devlicio.us/blogs/tim_barcz/archive/2008/08/22/prg-pattern-in-the-asp-net-mvc-framework.aspx</a></p>\n\n<p>Use that along with a robust domain model (for tracking steps or form completion state or whatever you call it) and you\'re golden.</p>\n'}, {'answer_id': 41878, 'author': 'Ben Scheirman', 'author_id': 3381, 'author_profile': 'https://Stackoverflow.com/users/3381', 'pm_score': 0, 'selected': False, 'text': '<pre><code>public class CreateAccountWizardController : Controller\n{\n   public ActionRresult Step1()\n   {\n   }\n\n\n   public ActionResult Step2()\n   {\n   }\n}\n</code></pre>\n'}, {'answer_id': 257555, 'author': 'CodeClimber', 'author_id': 4724, 'author_profile': 'https://Stackoverflow.com/users/4724', 'pm_score': 1, 'selected': False, 'text': '<p>In order to keep the steps you could implement a page flow action filters, which provide an experience like this one:</p>\n\n<pre><code>[RequiredStep(FlowStart = true)]\npublic ActionResult Confirm()\n{\n    return View();\n}\n\n[RequiredStep (PreviousStep = "Confirm")]\npublic ActionResult ExecuteOrder()\n{\n    return RedirectToAction("ThankYou");\n}\n\n[RequiredStep(PreviousStep = "ExecuteOrder")]\npublic ActionResult ThankYou()\n{\n    return View();\n}\n</code></pre>\n'}, {'answer_id': 1462296, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>I left the page flow up to the view, where I believe it belongs, so different views could have different page flows (e.g. for desktop browser clients or mobile phone clients etc.) I wrote it up on my blog: <a href="http://shouldersofgiants.co.uk/Blog/post/2009/09/16/A-RESTful-Wizard-Using-ASPNet-MVCe280a6-Perhaps.aspx" rel="nofollow noreferrer">A RESTful Wizard Using ASP.Net MVC… Perhaps?</a></p>\n'}]
['https://Stackoverflow.com/questions/16330', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1946/']