I am using action filter in my MVC code i have attached action filter with below mentioned action, but this action is decorate with MVC action name attribute.
But i want action method original name(ex. ChangeOrder) but i got in action filter name as a edit. I don't want to remove ActionName attribute.
[HttpPost, ActionName("Edit")]
[FormValueRequired("btnSaveOrderStatus")]
public ActionResult ChangeOrder(int id)
{
return View();
}
Should i get Actionmethod original name without removing ActionName attribute. please provide me way how to get original name not decorated name in mvc.
EditinfilterContext.ActionDescriptor.ActionName?