All the code in the above will be the same put add some code and change code in the controller.
Inject IServiceFactory in ConfigureServices in Startup.cs
Replace code in controller
Resources
New keyword is glue
All the code in the above will be the same put add some code and change code in the controller.
Inject IServiceFactory in ConfigureServices in Startup.cs
Replace code in controller
Resources
New keyword is glue