get controller and action from actionfilter .net core code example Example: get controller name from ActionExecutingContext .net 4.x filterContext.ActionDescriptor.ActionName