RuntimeBinderException: '' does not contain 'Any()'
Would like another set of eyes on this exception. I am following a YT tutorial to create a CRUD application via ASP.NET. Once I ran the code, this error popped out.
Seems to me like this exception points out at those two lines in my cshtml file
@if(Model != null && Model.Any()){
@if(Model != null && Model.Any()){
(line 26) and
<h3>@ViewData["Title"]</h3>
<h3>@ViewData["Title"]</h3>
(line 8).
I have added (at)
using System.Linq
using System.Linq
in cshtml file and all over classes with the name of Employee, but the exception persists. Does anyone have an idea where it went wrong and triggered the exception?