I understand that in Razor, @Html does a bunch of neat things, like generate HTML for links, inputs, etc.
But I don’t get the DisplayFor function…
Why would I write:
@Html.DisplayFor(model => model.Title)
when I could just write:
@Model.Title
I understand that in Razor, @Html does a bunch of neat things, like generate HTML for links, inputs, etc.
But I don’t get the DisplayFor function…
Why would I write:
@Html.DisplayFor(model => model.Title)
when I could just write:
@Model.Title