asp.net core api - how to distinguish between `api/cars` and `api/cars?color=red` calls with [FromQuery] object

后端 未结 0 1894
终归单人心
终归单人心 2021-01-07 03:47

I am using [FromQuery] atribute in controller\'s Get method:

//CarsController, etc..
[HttpGet         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题