You can use Response.Redirect wherever you want, but you need to specify the correct (relative or absolute) URL, not just the action name. However, it would be preferable to stick with the MVC pattern and do something like this:
[Accept(HttpVerbs.Post)]
public ActionResult NerdDinner(string Name)
{
ActionResult testResult = testName(Name)
if (testResult != null) return testResult;
...
return RedirectToAction("ActionResultAAA");
}
private ActionResult testName(string name)
{
if(name == null)
{
return RedirectToAction("ActionResultBBB");
}
return null;
}
source
share