I have a List of data I'm bringing into the Razor view and I'd like to filter it at this point. For some reason, the Where doesn't work when I:
@foreach (var t in Model.ToDoLists.Where(t => t.Status != "Complete" || t.Status != "Delete" ||
t.Status != "delete"))
But, I can be silly and do this and it works:
@foreach (var t in Model.ToDoLists.Where(t => t.Status != "Complete").Where(b => b.Status !=
"Delete").Where(c => c.Status != "delete"))
What is the correct way to do this?
Thanks!