C# ASP.NET MVC Forms Creating a Basic Form Using Our Models

Shawn McCall
Shawn McCall
7,863 Points

Lamba expression not working

Getting two errors from the Html.LabelFor method when using the lamba expression: @Html.LabelFor(m => m.Date, new { @class = "control=label" })

The type or namespace name 'Linq' does not exist in the namespace 'System' The type 'Expression<>' is defined in an assembly that is not referenced.

Any ideas?

1 Answer