Question: using Linq in Razor view produces runtime error

Question

using Linq in Razor view produces runtime error

Answers 0
Added at 2016-12-28 22:12
Tags
Question
@if (Model.Any())
{
    //do stuff
}

causes a runtime error enter image description here

i have this in my web config

<add namespace="System.Linq" />

and have also tried the @using System.Linq but always get this error.

Any ideas?

Answers
Source Show
◀ Wstecz