TylersNotes: Difference between revisions

From Prodigix Wiki
Jump to navigation Jump to search
(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>();"