how to redirect to another action in same controller?

action, asp.net-mvc, asp.net-mvc-3, controller, redirect

Solution

return RedirectToAction("ActionName");

Instead of `return Redirect("/Elearning/NotAuthorized");` do this:

return RedirectToAction("NotAuthorized"); // if you're inside the Elearning controller

or

RedirectToAction("NotAuthorized", "Elearning"); // if calling from other controller

Problem

i want to redirect to another action in same controller. how can we achieve this? i tried like return RedirectToAction("NotAuthorized");

Original source