Asp.net mvc 3 如何获取已重定向的操作?

Asp.net mvc 3 如何获取已重定向的操作?,asp.net-mvc-3,redirect,asp.net-mvc-routing,asp.net-mvc-controller,Asp.net Mvc 3,Redirect,Asp.net Mvc Routing,Asp.net Mvc Controller,在ASP.NET MVC3中,是否有方法获取在控制器中重定向的操作的名称?(顺便说一句,不在TempData或Session中保存操作的名称)这样怎么样 public ActionResult getAction(string FromActionName){ if(!string.IsEmptyOrNull(FromActionName)){ //Do something with the action name }else{ //Do nothing } r

在ASP.NET MVC3中,是否有方法获取在控制器中重定向的操作的名称?(顺便说一句,不在TempData或Session中保存操作的名称)

这样怎么样

public ActionResult getAction(string FromActionName){
   if(!string.IsEmptyOrNull(FromActionName)){
    //Do something with the action name
   }else{
    //Do nothing
   }
return View();
}
后期动作看起来像

[HttpPost]
public ActionResult postAction(Model _model){
 //some processing
 return RedirectToAction("getAction",new{FromActionName="postAction"});
}

以下关于重定向到“先前”操作的帖子可能包含您需要的信息:我喜欢这个想法。然而,这并不是我想要的。我想找到一种方法,从控制器中已经存在的数据中获取上一个操作。