I have an entity of Items that relates to the table of products and it is already in production and is working perfectly! Now I need to create a search report where the user can determine through the filters the conditions of this query. The query fields that the user can choose are:
- Date From - Date Request From To
- Store
- Item
- Brand
- Payment form.
The report is very simple and the result will be displayed through a View with List. The report has already been created without using the fields previously reported. I'm using EntityFramework in queries and for this report I'm currently using this query:
return Db.TabCadStatusOrdemServicoItem.ToList().OrderByDescending(x => x.Descricao);
The question is: how do I include the fields in the above query knowing that for some fields the user can select the option all (eg store)?
Thanks for the strength!