title: type of ajax calls for [HttpDelete] Asp.Net MVC
body: <p>What type of <code>ajax</code> calls will <code>[HttpDelete]</code> MVC attribute listens to? Say I have below <code>JsonResult</code> decorated with <code>[HttpDelete]</code> attribute.</p>
  
  <pre><code>[HttpDelete]
  public JsonResult DeleteData(string id)
  {
     //deleting the data
     return new Json{Data="Deleted", JsonRequestBehavior=JsonRequestBehavior.AllowGet};
  }
  </code></pre>
  
  <p>Now I've tried to invoke these <code>JsonResult</code> with <code>$.ajax</code> and <code>$.post</code> but both of them couldn't trace this controller method. Its obvious that I can get this done through <code>[HttpPost]</code> attribute decoration, but since I am deleting a <code>data</code> and this way it should be better IMHO. How would we go invoking Controller methods decorated with <code>[HttpDelete]</code> attribute through <code>ajax</code>?</p>