I have been looking through trying to find some way to redirect to an Index
view from another controller.
public ActionResult Index()
{
ApplicationController viewModel = new ApplicationController();
return RedirectToAction("Index", viewModel);
}
This is what I tried right now. Now the code I was given to has a ActionLink
that links to the page I need to Redirect
too.
@Html.ActionLink("Bally Applications","../Application")
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…