jeudi 2 juin 2016

MVC @RenderBody() and RenderAction

I have a layout with one "RenderAction" and @RenderBody().

@{Html.RenderAction("View1", "Controller");}
@RenderBody()

Well, MVC first call the controller of @RenderBody() then call the controller of RenderAction. Is there any way to call the "RenderAction"'s controller first ?

Aucun commentaire:

Enregistrer un commentaire