Does anyone know how to get route name from attribute routing in action filter?
For example, I have a controller and attribute route as follows:
[HttpGet] [CustomActionAttribute] [Route("~/index", Name="IndexPage")] public async Task<ActionResult> Index() {
Can I get the name of the route in the CustomActionAttribute attribute?
public override void OnActionExecuting(ActionExecutingContext filterContext) {
source share