Reputation: 1829
When I am hitting a request from client side to the API, following shows at the network as my URL Query String.
My Server Side Controller is as follows:
public Result<bool> Delete(Guid id)
{
return _ABCProductionRepo.Delete(id);
}
I just received the 1st GUID ID from my request URL! I've also tried ArrayList instead of GUID type. But nothing happens.
Upvotes: 0
Views: 71
Reputation: 107
Your Delete request is fine, however to accept an array in your controller you'll need to modify your parameter to an array and include [FromUri].
Delete([FromUri] Guid[] id)
Upvotes: 1