I am using MvcSiteMapProvider MVC5 with my web application and inside of my _Layout.cshtml file I am using:
@if (Html.MvcSiteMap().SiteMap.CurrentNode != Html.MvcSiteMap().SiteMap.RootNode)
{
@Html.MvcSiteMap().SiteMapPath()
}
But the Intellisence is throwing this error:
System.Web.Mvc.HtmlHelper does not contain a definition for MvcSiteMap
Does anyone know how to fix this problem?