I have the following that selects a list of benefits for a given product:
foreach (var benefit in Model.Products.Where(x => x.ProductId == "454").SelectMany(p => p.Benefits).Where(b => b.HeadlineBenefit == false))
However I want to change this to select a list of befits for the first product in the collection. I thought the below would work but it doesnt:
foreach (var benefit in Model.Products.FirstOrDefault().SelectMany(p => p.Benefits).Where(b => b.HeadlineBenefit == false))