I have a legacy ASP.NET Web API 2
project and want port it to ASP.NET Core 6
. I have a problem with http get method which has next argument
public class GetUsersArgs
{
public List<int> UserIds { get; set; }
}
Client app calls it in next way api/Users/GetUsers?UserIds[]=1&UserIds[]=5&UserIds[]=10
It binds as array with three elements in ASP.NET Web API 2
but it fails when binding in ASP.NET Core 6
. I can`t change client code so my question how to achieve same binding on core.