How to redirect to Index from another controller?

Use the overloads that take the controller name too…

return RedirectToAction("Index", "MyController");

and

@Html.ActionLink("Link Name","Index", "MyController", null, null)

Leave a Comment