ICollection
doesn't have a Count
method, it has a Count property. You are probably getting confused with the LINQ Count extension method which is supported on an IEnumerable
interface.
Just remove the parenthesis at the end of the Count
call i.e.
<h2>You have @Model.Projects.Count projects...</h2>