In mvc 5, I could do:
new UrlHelper(HttpContext.Current.Request.RequestContext)
I cannot use constructor injection because I need UrlHelper inside the Attribute and in Startup.cs, as well
Is there a way to allow a IUrlHelpercontroller without an instance or HtmlHelper?
source
share