Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi, when using a RenderController wich way should we use the Index method ?
public IActionResult Index(ContentModel contentModel) // will raise exception : AmbiguousMatchException: The request matched multiple endpoints. // testable
or
public override IActionResult Index() { ... CurrentPage ... } // works // not testable
https://our.umbraco.com/documentation/implementation/Unit-Testing/#testing-a-rendercontroller shows method #1
https://our.umbraco.com/documentation/reference/routing/custom-controllers#creating-a-custom-controller shows method #2
thank you
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
RenderController : correct signature for Index method
Hi, when using a RenderController wich way should we use the Index method ?
or
https://our.umbraco.com/documentation/implementation/Unit-Testing/#testing-a-rendercontroller shows method #1
https://our.umbraco.com/documentation/reference/routing/custom-controllers#creating-a-custom-controller shows method #2
thank you
is working on a reply...