How to pass parameter to DELETE in AngularJS?
<p>Which is the right way to pass parameter in a DELETE in AngularJS?</p>

<p>This call is not working:</p>

<pre><code> $http.delete("api/testDelete",
             { 
              Id:5
             }
             ).success(function (data) {
                alert('Exit status ' + data);
            });
</code></pre>

<p>This call is working:</p>

<pre><code>  $http.delete("api/testDelete",
             { 
               { params: { Id: 5 } }
             }
             ).success(function (data) {
                alert('Exit status ' + data);
            });
</code></pre>

<p>This is the C# Web Api being called:</p>

<pre><code>[HttpDelete]   
  public bool testDelete(int Id)
  { return true; }
</code></pre>

<p>Why do i have to use params?
Is it possible to pass an object?
Thanks</p>