After POSTing to a server side method, I want to return the user back to the view from which he came, which was:
.../BrokerDashboard/Profile/Index
Here's the method:
[HttpPost]
public ActionResult Profile(ProfileModel Model)
{
// do stuff
return View("Index", Model);
}
There is logic in here that needs to execute after the form is posted:
public ActionResult Index(string contactid)
{
// do stuff
}
But after the post, the browser ends up here:
.../BrokerDashboard/Profile/Profile
Which means public ActionResult Index()
does not get called again after the post.