TylersNotes

From Prodigix Wiki
Revision as of 20:09, 17 March 2023 by TylerSmith (talk | contribs) (List of things about nop)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How to override a controller:

  • Create new customer controller that inherits from the controller you want to override
  • In your new controller add any actions you wish to override. Making sure to add the "override" function modifier
  • In the plugins NopStartup add "services.AddScoped<ControllerToOverride, CustomController>();"