Wednesday 15 June 2011

c# - Working with State Machine Workflows in ASP.NET MVC -


I have a state machine workflow in which there are many states in each state, there is an event driven activity which is managed by an external event Does. When that incident fires, I want to redirect the request to a different controller action or view .

What is the best way when an event is removed in a state machine workflow, then redirect a different view or controller action?

You just use the RedirectToAction method:

The workflow determines how the action needs to be executed, call that method and the browser will be redirected and taken to that action. On the other hand, if you need to present a specific view, you can simply use the controller's view method and pass on the name of the scene you want to show:

< / Div>

No comments:

Post a Comment