Я получаю ниже ошибку компиляции: Compiler Error Message: CS1929: 'HtmlHelper<IEnumerable<Department>>' does not contain a definition for 'ActionLink' and the best extension method overload 'AjaxExtensions.ActionLink(AjaxHelper, string, string, object, AjaxOptions, object)' requires a receiver of type 'AjaxHelper'
Но не могу найти то, что мне не хватает
Ниже мой файл Index.cs html:
@using HotelBookingApp.Models;
@model IEnumerable<Department>
<div style="font-family:Arial">
@{
ViewBag.Title = "Departments List";
}
<h2>Departments List</h2>
<ul>
@foreach (Department department in @Model)
{
<li>
@Html.ActionLink(department.Name,"Index","Employee",
new { departmentId = department.DeptId }, null)
</li>
}
</ul>
</div>