title: Ajax post returning error "Not Found"
body: <p>Im having the following ajax cal in my JS file in Durundal ,                </p>
  
  <pre><code>var dataJSON ={ID : "jo"};
  self.js = $.ajax({
      type: "POST",
      dataType: text,
      url: "http://localhost:53081/api/File",
      data: JSON.stringify(dataJSON),
  
      error: function (xhr, status, error) {
          alert(error);
      },
      success: function (json) {
          alert("Data Returned: " + JSON.stringify(json));
      }
  });
  </code></pre>
  
  <p>and my REST api is </p>
  
  <pre><code>[HttpPost]
  public string upload(string ID)
  {
  
  
  
      string givenId = ID;
      return givenId;
  
  }
  </code></pre>
  
  <p>but when i call thsi methos im simply getting error alert . what went wrong </p>
  
  <p><strong>update</strong></p>
  
  <p>i have updated my code but now im getting Not found error </p>