Hello I'm triying to post a list of objectos to a web api method this way: 

```
var uri = "http://localhost:" + port + "/api/Account";
$.ajax({
    dateType: "json",       
    method: "POST",
    url: uri,
    data: JSON.stringify(schedule),
    success: function (result) {
        alert(result);
    },
    error: function () {
        alert("mal")
    }
})

```

My web api method is the following: 

```
public IHttpActionResult createSchedule([FromBody]List<Schedule> schedule)
{
        return Ok(schedule.Capacity);
}

```

Well the problem is that is returning 0 instead of the number of the objects in the list. I assume that's because the list is arriving empty. What am I doing bad?. I read something about set data to `date: {"": schedule}` but it didn't work. It threw a null reference exception.