code to configure (API_KEY) in appsetting.json & email.cs using C# web api
without using (ConfigurationManager.AppSettings[API_KEY]) in email.cs