✅ Client needs filtering logic - what's the best way to implement?
I have two classes like so:
After my program runs, the List<VirtualProduct> Products variable is filled with objects and a JSON of it is returned to the client.
I want my client who knows nothing about coding to be able to filter products by writing in some language or query what objects he wants to keep in that list, based on certain conditions, like:
"CONTAINS toy", "EQUALS Best Toy In America", "NOT {{StoreName}}"
Should I implement this logic on my own, or use some sort of existing query language that C# can interpret / solution for this?
Thanks!
After my program runs, the List<VirtualProduct> Products variable is filled with objects and a JSON of it is returned to the client.
I want my client who knows nothing about coding to be able to filter products by writing in some language or query what objects he wants to keep in that list, based on certain conditions, like:
"CONTAINS toy", "EQUALS Best Toy In America", "NOT {{StoreName}}"
Should I implement this logic on my own, or use some sort of existing query language that C# can interpret / solution for this?
Thanks!