TylersNotes: Difference between revisions
Jump to navigation
Jump to search
TylerSmith (talk | contribs) (List of things about nop) |
(No difference)
|
Latest revision as of 20:09, 17 March 2023
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>();"