Consider the following code:
public class MyAttribute : Attribute { }
[MyAttribute]
public class MyControlller : Controller
{
//...
}
Now that I have a Global Action Filter which gets me an ActionExecutingContext object.
My question is, here, how do I check if the requested Controller has been adorned with my custom Attribute.