Ejemplo n.º 1
0
 /// <summary>
 /// 获取View的html
 /// </summary>
 /// <param name="controller">控制器</param>
 /// <param name="viewName">view名称</param>
 /// <returns></returns>
 public static string GetViewHtml(this Controller controller, string viewName)
 {
     return(controller.GetViewHtml(viewName, null));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 获取View的html
 /// </summary>
 /// <param name="controller">控制器</param>
 /// <param name="model">实体</param>
 /// <returns></returns>
 public static string GetViewHtml(this Controller controller, object model)
 {
     return(controller.GetViewHtml(null, model));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 获取View的html
 /// </summary>
 /// <param name="controller">控制器</param>
 /// <returns></returns>
 public static string GetViewHtml(this Controller controller)
 {
     return(controller.GetViewHtml(null, null));
 }