I'm new in ASP Net Core 2, I want to bind different parameters that come from URL query string to action parameters in my action:
[HttpGet("{page}&{pageSize}&{predicate}", Name = "GetBuildingsBySearchCriteria")]
public IActionResult GetBuildingsBySearchCriteria([FromHeader] string idUser, [FromQuery]int page, [FromQuery]int pageSize, [FromQuery]string predicate)
{
....
}
When I test my action using postman, I set the idUser in header and other parameters in URL, example:
http://localhost:51232/api/buildings/page=1&pageSize=10&predicate=fr
The result is that I receive the idUser that I send from the header but other parameters are empty.
Do I miss something or what is wrong in my code?