title: call HttpPost method from Client in C# code
body: <p>I am new to MVC and C#, so sorry if this question seems too basic. </p>
  
  <p>For a HttpPost Controller like below, how do to call this method directly from a client-side program written in C#, without a browser (<em>NOT</em> from a UI form in a browser with a submit button)? I am using .NET 4 and MVC 4.</p>
  
  <p>I am sure the answer is somehwere on the web, but haven't found one so far. Any help is appreciated!</p>
  
  <pre><code>[HttpPost]
  public Boolean PostDataToDB(int n, string s)
  {
      //validate and write to database
      return false;
  }
  </code></pre>