I'm following the answer provided by Mrchief in this question:
How to pass an array of integers to a asp.net web api rest service
The problem I'm experiencing is that the AttemptedValue contains the key of the array (see screenshot below).
The code that converts this string into an array expects the AttemptedValue string to be like this:
"123, 435, 234"
So what's going on here?
Edit
The url:
https://localhost:44301/api/sickleaves/sick/multiple/employeeIds=123,435,234
The endpoint signature:
[Route("api/sickleaves/sick/multiple/{employeeIds}")]
public async Task<IHttpActionResult> PostSick([ModelBinder(typeof(CommaDelimitedArrayModelBinder))] int[] employeeIds)