System.Web.Mvc.HtmlHelper does not contain a definition for 'ActionLink'

When trying to use custom @Html.ActionLink in the Razor you might get an error - System.Web.Mvc.HtmlHelper does not contain a definition for 'ActionLink'.  

Solution

Make sure that you have following using in your razor (.cshtml) file:
using System.Web.Mvc.Html;
FYI  - This is needed because the HtmlHelper class is located in System.Web.Mvc namespace but the ActionLink extension method is located in System.Web.Mvc.Html namespace.