I have the following in a RazorEngine template:
@using WAND.Helpers
@model Tour.Entities.Accommodation
<p>
You can view your WAND accommodation home page by @Html.HomepageActionLink("Accommodation","clicking here",@Model.AccommodationId)
</p>
The HomePageActionLink is a helper I wrote that looks, in part, like this:
public static MvcHtmlString HomepageActionLink(this HtmlHelper helper, string serviceProviderType, string linkText, int idValue )
{
...
return new MvcHtmlString(link);
}
The problem is that when I run this, I get an error saying:
More details about the error: - error: (64, 60) The name 'Html' does not exist in the current context
Is there a way I can get this to work?