1. using Microsoft.Extensions.Configuration public class HomeController : Controller { public IConfiguration _configuration { get; set; } public HomeController(IConfiguration configuration) { _configuration = configuration; } public IActionResult Ind…