title: Getting value of parameter in web.config custom section in mvc View
body: <p>I have custom section in web.config with user roles:</p>
  
  <pre><code>  &lt;roles&gt;
       &lt;add key="Role1" value="Dev" /&gt;
       &lt;add key="Role2" value="Dev2" /&gt;
    &lt;/roles&gt;
  </code></pre>
  
  <p>And i want to get value using key in my _layout page. And then hide link in menu depending of roles that user contain. Something like this:</p>
  
  <pre><code>     @if (User.IsInRole(@System.Configuration.ConfigurationManager.GetSection("roles")["Role1"]))
       {
       &lt;li&gt;@Html.ActionLink("{{'Statistics' | translate}}", "Statistics", "Home", new { area = "" }, null)&lt;/li&gt;
       }
  </code></pre>