How to convert/ use DisplayNameFor as hyperlink which redirects to next page
Here is my code :
@model IEnumerable<MyProject.Models.Record>
@using (Html.BeginForm())
{
@Html.ActionLink(Html.DisplayNameFor(model => model.id).ToHtmlString(), "ADDPage", new { model=> model.id })
}
Getting error at new { model=> model.id }. How do I get id as pass it into this new { model=> model.id }