I tried to fetch the appsettings.json values in controller through dependency injection. As here we can use dependency injection. Can we use same i.e. dependency injection for s