Tip of the Week: How to access configuration from Controller in ASP.NET Core 2.0?

You defined your config structure in appsetings.json file, and you what to access this data in a Controller in your ASP.NET MVC or WebAPI project based on .NET Core 2.0. There are a couple of options, but one of the easiest is that. The example structure of your configuration in appsetings.json file is below. appsetings.json…

0