Answer the question
In order to leave comments, you need to log in
How to call the controller parvily, passing an array as a parameter?
Hello everyone, there is such a controller:
The question is, how to access the GetParam action by passing an array to it?
I tried this method, but it ended with an error
PS If you delete the first action, then everything works as it should
PSS You cannot use the [Route] attribute
Answer the question
In order to leave comments, you need to log in
Emnip, when using convention-based routing, the Get prefix from the method name is discarded.
So the path should look like this:
http://localhost:5000/api/Rtb/Param?ids=1&ids=2
PS If you delete the first action, then everything works as it should
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question