title: How to read the key values from web.config file in ASP.NET Core
body: <p>I am having two keys in my Web.Config file as follows</p>
  
  <pre><code>&lt;/configuration&gt;
    &lt;appSettings&gt;
      &lt;add key="PrimaryValue" value="hq6775"/&gt;
      &lt;add key="SecondaryValue" value="xVkP2355687"/&gt;
    &lt;/appSettings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I want to read these keys in my Controller method. Can any one help me on this?</p>