WebAPI delete list by HttpClient
问题 In my WebApi I want to have method witch accepts ID list as parameter and deletes them all. So this method looks like code below. [HttpDelete] public IHttpActionResult DeleteList([FromBody]IEnumerable<int> templateIds) I also need Unit Test to be written for this using .NET's HttpClient. So my question is: how can I pass array/list of Ids to WebApi using HttpClient DeleteAsync? :) 回答1: As far as I am aware sending a message body in a HTTP DELETE is ignored in Web Api. An alternative is to