I have some configuration settings stored in my web.config file of my front end project.
I wanted to access them in the database layer, I am able to get them using this
ConfigurationManager.AppSettings["Setting"]
But I was wondering is it a good practice to access the settings in the database layer or should I access and pass this value from my WebApi control down to the database layer?