I want to create a helper that would look something like this and
namespace MvcApplication.Helpers
{
public static class Extensions
{
public static string Test(this HtmlHelper helper, string routeValue1, string routeValue2)
{
return "Something";
}
}
}
Is there a way to access ViewContext.RouteData.Values from Test without passing route values as parameters? Is the only possible alternative
public static string Test(this HtmlHelper helper, ViewContext vc)
{
return "Something";
}