I created the helper class
namespace SEM.API.Helpers
{
public static class Navigation
{
public static string BuildSomething(this HtmlHelper h
and added namespace to webconfig
<add namespace="SEM.API.Helpers" />
Make sure you did this in ~/Views/web.config
and not in ~/web.config
.
Another thing to try is to add the @using
directive to your view:
@using SEM.API.Helpers
@Html.BuildSomething()
In addition, you should add to the ~/Areas/[Area name]Views/web.config
the same string if Areas used.