Right now, I have an action associated with just the POST from the Index page in my MVC app. But I want a generic handler action that handles all page posts and within the POST Handler action, I want to know the view that I just came from. What I want is below: Any ideas?
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult GenericPostHandler(NewAccountInfo info)
{
try
{
string currentview = //how to get View for which to handle the POST?
Persist();
return RedirectToAction(StepManager.GetNextStep(currentView));
}
catch
{
return View();
}
}