In ASP Web API 2, I would like to implement a search function in my REST URI.
For example, if I have a Clients resource
/base_url/customers
/base_url/customers/1
....
I would like to implement, for example:
/base_url/customers?active=true
How can I implement a search in the Web API 2 controller? (I don’t want to use the OData protocol because I have a DTO object: my controller should interact with the DTO object, and not directly with the model objects).
source
share