title: Post array to web api using IHttpActionResult not working in VB
body: <p>I can use ajax and IHttpActionResult to post array to web api in C#.net (VS2017). However, it does not work after I convert the code to vb.net (VC2017). I only get 0 values for the variables. Here is my code:</p>
  
  <p>Class:</p>
  
  <pre><code>Public Class Latlon
     Public Property latIn As Decimal
     Public Property lonIn As Decimal
  End Class
  </code></pre>
  
  <p>API controller</p>
  
  <pre><code>&lt;HttpPost&gt;
  Public Function Post(ByVal latlons As List(Of Latlon)) As IHttpActionResult
      Dim lat1 = latlons(0).latIn
      Return Content(HttpStatusCode.BadRequest, lat1)
  End Function
  </code></pre>
  
  <p>ajax:</p>
  
  <pre><code>        var latlon = [
              { lat: 45, lon: -120 },
              { lat: 55, lon: -112 }
          ];
          alert(latlon)
          $.ajax({
              url: uri,
              method: "POST",
              data: { '': latlon } 
          }).done(function (result) {
              alert(result)
          }).fail(function (xhr) {
              alert(xhr.responseText);
          });
  </code></pre>
  
  <p>Chrome F12
  <a href="https://i.stack.imgur.com/PMFew.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PMFew.png" alt="enter image description here"></a></p>