I'm rather new to coding ASP.NET(C#), therefore I'd really appreciate some help for the following error:
I get an error when when the second linq is executed:
var scprotocoltmp = from sc in protocolquery where sc.SectionProtocols.Contains(section) select sc;
if (scprotocoltmp.Count<Protocol>() > 0)
You can see it in the context in the images below.
SectionProtocols is a collection of Protocol, containing multiple Sections. (That's why I use "Contains", to search the List).
Thanks in advance for your help!