Base solution for your next web application
Open Closed

Filter Injection #1964


User avatar
0
korigoth created

Hey,

I want to create a global filter that will push in the ViewBag a setting value of the user (is menu-collapsed)

How can i inject ISettingManager in my filter ?

Thx in advance


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Just derive your action filter from ITransientDependency and injecy ISettingManager into it.