我怎样才能configurate的WebAPI控制器来读取传过来的参数的所有数据?
客户:
$.post(url,{id:aHugeData});
控制器:
public class myController : ApiController
{
public List<string> Events(List<Event> id) //there must be 30 items, but I see 7
{
List<string> artists = new List<string>();
foreach (Event e in id)
{
artists.AddRange(e.artists.artist);
}
artists = artists.Distinct().ToList();
return artists;
}
}
在HttpContext的我看到,接收的所有数据。