'LINQ in MVC Razor View

I have written a working MVC web app. I started using SQL statements back to the DB, but have changed to LINQ. I have a view that shows all work in the IT department and a button to allow the user to select tasks allocated to them.

I am trying to get the IT workers list from the model list of files, like this

{@IEnumerable<@AERS_WEB.Models.clsFileDetails> fls = @Model.FILES.Where(q=>q.DEVELOPER=="ac")}

but I get an error

Using the generic type 'System.Collections.Generic.IEnumerable' requires 1 type arguments

I've also tried

{@List<@AERS_WEB.Models.clsFileDetails> fls = @Model.FILES.Where(q=>q.DEVELOPER=="ac")}
{@IList<@AERS_WEB.Models.clsFileDetails> fls = @Model.FILES.Where(q=>q.DEVELOPER=="ac")}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source