title: Calling PUT method from Javascript
body: <p>I'm trying to call my C# Web API from javascript, and the data doesn't appear to be passing correctly.  The GET method I have works perfectly fine, but I can't seem to get the PUT working as I intend.  Here's the structure:</p>
  
  <p>Javascript:</p>
  
  <pre><code>$.ajax({
      type: "PUT",
      url: "/api/FTP",
      data: "Hello World"
  })
  </code></pre>
  
  <p>C# Web API:</p>
  
  <pre><code>public class FTPController : ApiController
  {
      // GET: api/FTP
      public IHttpActionResult Get()
      {
      }
  
      // PUT: api/FTP
      public void Put([FromBody] string data)
      {
      }
  }
  </code></pre>
  
  <p>Please let me know if I need to provide more info.  Thanks for the help.</p>