I'd like to pass a list of parameters in an action.
I would like to use Tuple, but I saw on the internet that's not possible.
I'm building a search action which will search into many fields of an object.
So I need to pass in parameter to my action, some pair of values like below :
Row0 : "Name,Chris"
Row1 : "City, NY"
The query will return every objects in my table which have name = Chris and city = NY
Here is my action :
[HttpGet("objects/searchMultiple/{type}/{operateur}/{param}", Name = "searchMultiple")]
public IActionResult SearchMultiple(string type, string operator, What_To_Put_Here?)
{
//call of the function which will execute the query with all parameters.
}