I have in my view :
@if (Model.Count() > 0)
{
@foreach (var item in Model)
{
<tr rowid="@item.SupplyPoints.First().SupplyPointId" >
...
}
But I get a "Sequence contains no elements" error message. How is that possible, as if my list was empty i don't go in the @if ? I've also checked in the controller, my list have elements... What can i do? Thx
Model.Count()anditem.SupplyPointsseem unrelated. - Henk Holterman