title: c# static public method
body: <p>Within a class called Security, there is a method:</p>
  
  <pre><code>    public static bool HasAccess(string UserId, string ModuleID)
  </code></pre>
  
  <p>How do I call this method and so it can return a bool result? </p>
  
  <p>I tried the followoing but was not successful:</p>
  
  <pre><code>    Security security = new Security();
      bool result = security.HasAccess("JKolk","Accounting");
  </code></pre>