title: Using value of String property inside a [Route()] data annotation in Controller
body: <p>I'm working on a ASP.NET MVC project, in a <code>Action</code> inside a <code>Controller</code> I try to use <code>STG_Route.ADD</code>property value inside <code>[Route()]</code> data annotation like this :<code>[Route(STG_Route.ADD)]</code>
   but <strong>Visual Studio</strong> show me this error : </p>
  
  <p><strong>An object reference is required for the non-static field, method, or property 'AdminController.STG_Route'</strong></p>
  
  <p><code>STG_Route</code> is an <code>object</code> <strong>of a class</strong>, this class is <code>STG_Route</code></p>
  
  <p><code>STG_Route</code> <strong>class code :</strong></p>
  
  <pre><code>public class STG_Route:Routes
  {
      public override string ADD =&gt; "/STG/Add";
      public override string SHOW =&gt; "/STG/Show";
      public override string PROFILE =&gt; "/STG/{CODE}";
  }
  </code></pre>
  
  <p><code>Routes</code> is another class</p>
  
  <p>Please any help about how can I use value of a <code>ADD</code> <strong>property</strong> inside <code>[Route()]</code></p>
  
  <p>Thanks in advance.</p>