I'm working on a screen where I'm displaying the list of products but when the user clicks on different checkboxes, I got the value of checked checkboxes value in action parameter. Here is my screen.

Now what I want to request the query dynamically on different items selection.
public async Task<IEnumerable<Product>> GetSpecificProducts
(List<int> brands, List<int> categories, List<int> sugar)
{
var products = await _context.Products
.Where(x => x.BrandId == ???)
.Where(x => x.CategoryId == ???)
.Where(x => x.Sugar == ???)
.ToListAsync();
}`
I've already take a look on some stackoverflow questions but I'm just getting results in case of single value like here. How can I generate the dynamic linq on multiple where clauses.
List<int> sugarifSugaris a boolean property? Instead ofList<int> sugarit should bebool sugarin your parameters method.