I have a scenario where I need to send multiple ProductIds in a GET Request to my Web API.
In my asp.net web api controller is there a way that I can make the param of my Action method be of type List<int> productIds
. I am assuming no, I have to pass them like this ?ProductIds=1,2,3 and then accept it as string productIds
.
Please let me know if there is a better way.