Exemple #1
0
 /// <summary>
 /// 错误视图
 /// </summary>
 /// <param name="controller">控制器</param>
 /// <param name="message">错误信息</param>
 /// <param name="viewName">错误视图名称</param>
 /// <returns></returns>
 public static ViewResult ErrorView(this Controller controller, string message, string viewName = "Error")
 {
     return(controller.ErrorView(new ViewErrorDto(message, "0000"), viewName));
 }