title: Call a Post Web API with multiple string parameters?
body: <p>How can we call the following web api ? </p>
  
  <pre><code>[HttpPost]
  public bool ValidateAdmin(string username, string password)
  {
      return _userBusinessObject.ValidateAdmin(username, password);
  }
  </code></pre>
  
  <p>I've written the following code, but it dosen't work <code>404 (Not Found)</code></p>
  
  <pre><code>string url = string.Format("api/User/ValidateAdmin?password={0}", password);
  HttpResponseMessage response = Client.PostAsJsonAsync(url, username).Result;
  response.EnsureSuccessStatusCode();
  return response.Content.ReadAsAsync&lt;bool&gt;().Result;
  </code></pre>
  
  <p><strong>Edit:</strong><br/>
  I'm dead sure about the Url, but it says <code>404 (Not Found)</code></p>