Base solution for your next web application
Open Closed

Method for getting the current controller/action Features #10664


0
acmeware created
  • What is your product version? 10.3
  • What is your product type (Angular or MVC)? MVC
  • What is product framework type (.net framework or .net core)? Core

I am trying to change an image (think logo) depending on what feature the current page belongs to. When looking at the feature manager, I only see methods to see if a feature is enabled at all, but what I really what to know is if the feature is decorated for the current controller/action. Is there a session variable or otherwise that shows if the current navigation has a particular feature?


3 Answer(s)
  • 0
    ismcagdas created
    Support Team

    Hi,

    Framework uses this method internally. You can copy it to your project and use it.

  • 0
    acmeware created

    Hi I see. Is there no way to get the current feature without reflection?

  • 0
    musa.demir created

    Hi @acmeware

    Feature management is not related controller. You may need to implement your own implementation to store controllers of features.