In Umbraco 7 you could use @Url.Action inside a View to render de link to an action in a controller.
But since Umbraco 8 uses a constructor (with the UmbracoHelper) for every controller, I got the meessage "No parameterless constructor defined for this object" when I click te link.
How can I create a link to a method in a controller with @Url.Action in Umbraco v8?
Use of Url.Action in Umbraco v8
Hi,
I have a question.
In Umbraco 7 you could use @Url.Action inside a View to render de link to an action in a controller.
But since Umbraco 8 uses a constructor (with the UmbracoHelper) for every controller, I got the meessage "No parameterless constructor defined for this object" when I click te link.
How can I create a link to a method in a controller with @Url.Action in Umbraco v8?
Thanks in advance.
Grtz Sander
hi Sander, I've been using this
@Url.SurfaceAction<mySurfaceController>("actionName")
is working on a reply...