0
I have a list of Assets that contain a list of Accessories
I would like to filter all Assets that accessories(ID_ACESSORIOS) are within a list of int.
Follows the code;
//Lista com todos os ID_ACESSORIOS que tenho que filtrar
List<int> idAcessoriosFiltro = model.AcessoriosFiltroList.Where(a => a.Selecionado == true).Select(b => b.ID_ACESSORIO).ToList();
//A variavel retorno contem todos os ativos que preciso filtrar
List<Ativo> retorno = _Service.FiltrarAtivos(Mapper.Map<RelatorioAtivosFiltroViewModel, AtivoFiltro>(model));
Using
List<int>
? That’s not Javascript, right? Which language?– Rômulo Gabriel Rodrigues
I’m sorry, I edited
– Junior Torres
a while ago I asked that one, maybe I can help you!
– Marconi
In that reply I comment on that too.
– Pablo Tondolo de Vargas