MVC 6 Tag Helpers and foreach
The @
character escapes the default model lambda code. Therefore you can type:
@foreach (var item in Model)
{
<label asp-for="@item.BookingCode"></label>
}
The @
character escapes the default model lambda code. Therefore you can type:
@foreach (var item in Model)
{
<label asp-for="@item.BookingCode"></label>
}