2
I’m making a simple filter, and show the data on the page.
The code I’m using is this:
mt.ModelItens = db.Forecast
.Where(f => (f.CanalForecast.area == idArea && f.CanalForecast.despesa == idDespesa))
.ToPagedList(mt.ModelPaging.page, mt.ModelPaging.pageSizeSelected);
This code works very well if the two fields are selected, because if only one is selected it shows nothing.
Referent here:
.Where(f => (f.CanalForecast.area == idArea && f.CanalForecast.despesa == idDespesa))
My problem is that I want it to work by selecting an ex. field (Area) and also by selecting the two fields (Area and Expense).
I don’t know if I got past the real problem now.
Give more information, is missing context, information on how the data are structures and clarity in the objective of the problem and existing doubt.
– Maniero
user34200 you registered as Edgar Araujo?
– ramaral
I think he came through Oauth in two different ways and didn’t unify users.
– Leonel Sanches da Silva