1

I registered some filters in Global.asax.cs file which looks like

public static void RegisterGlobalFilters( GlobalFilterCollection filters )
{
         filters.Add( new MyAttribute() );
         filters.Add( new AuthenticateAttribute() );
}

This thing will apply these two attributes to all controllers from project.

Now, I want to create a specific attribute and register it ( I don't know where and how, maybe like as above method) but it must be available only for area side.

Snake Eyes
  • 16,287
  • 34
  • 113
  • 221

0 Answers0