FromQuery binding does not work when query param has same name as controller parameter name #59698
Open
1 task done
Labels
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Is there an existing issue for this?
Describe the bug
I have this class
and in controller I have
and now when hitting controller with command in query params in the request does not bind the query params with model
https://10.0.10.4/api/auditTrail?pageSize=100 this works
https://10.0.10.4/api/auditTrail?pageSize=100&command=test //model binding does not work
Expected Behavior
Expect model binding to work
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
8.0.204
Anything else?
No response
The text was updated successfully, but these errors were encountered: