Exemple #1
0
        private static String runOtherLayout(ControllerBase controller, MvcContext ctx)
        {
            ControllerBase layoutController = ControllerFactory.FindController(controller.LayoutControllerType, ctx);

            layoutController.utils.switchViewToLayout();

            ActionRunner.runLayoutAction(ctx, layoutController, layoutController.Layout);

            return(layoutController.utils.getActionResult());
        }
Exemple #2
0
 /// <summary>
 /// 根据名称获取某 action 的方法信息
 /// </summary>
 /// <param name="actionName"></param>
 /// <returns></returns>
 public static MethodInfo getMethod(ControllerBase controller, String actionName)
 {
     return(ActionRunner.getActionMethod(controller, actionName));
 }