Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Get Controller Name From Filter Context

$
0
0

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;


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>