Hello,
I'm using RenderAction to include the output of several "components" in my view. But everytime I use RenderAction calls to ActionLink within the nested action produce wrong routes. (Same for RouteLink.) If the action is called directly the correct routes are produced.
So I call the action several times in the index action of my parent view:
<% Html.RenderAction<StateAdminController>(c => c.Index(StateType.Event)); %>
<% Html.RenderAction<StateAdminController>(c => c.Index(StateType.Booking)); %>
<% Html.RenderAction<StateAdminController>(c => c.Index(StateType.Communication)); %>
<% Html.RenderAction<StateAdminController>(c => c.Index(StateType.Payment)); %>
And in the Nested Index-View I try to make an ActionLink to the Edit-method of the StateAdminController:
<%= Html.ActionLink<StateAdminController>(c => c.Edit(state.Id), "Bearbeiten") %>
But the ActionLink points to the Index-Action of my parent view.
Is that an known issue? Can I do something wrong? How ActionLinks should be done, when the action is called from RenderAction?
Thank you in advance.
Regards.
Joachim