Enumerable.Where
returns anotherIEnumerable
, even if this contains just onefound
item. So replace.Where(
with.FirstOrDefault(
or.Single(
etc.- You also don't need the additional
@
on in the lambda filter. - Once you've done this, access the
Title
property of the selectedLanguage
e.g.
@Model.lstLanguages.FirstOrDefault(x => x.ID == item.LanguageID).Title
Note that you'll get a NRE if the language
isn't found.