I have list function contain list language in side
I want to filter that list Language with condition
CulNo = "en"
.
Here is my code:
var functionLang =
functionVm.Where(x => x.Language.Any(y => y.LanguageCountry.CulNo == cul));
But it still returns all languages. How can I filter with list function have list language with my condition?
You could try anonymous projection to filter
var langs = language
.Select(g=> new
{
g = g.Language.where(y => y.LanguageCountry.CulNo == cul)
}).ToList();