I need to get controller Name On OnActionExecuting method I have already did in Asp.net MVC 5 but i dont know how do i do with Asp.net core
Here is MVC Code
var descriptor = filterContext.ActionDescriptor; var ActionParameter = filterContext.ActionParameters; var actionName = descriptor.ActionName; var controllerName = descriptor.ControllerDescriptor.ControllerName;