You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ErrorController.cs 1.3 KiB

4 年之前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. namespace Learun.Application.Web.Controllers
  7. {
  8. /// <summary>
  9. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  10. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  11. /// 创建人:陈彬彬
  12. /// 日 期:2017.03.09
  13. /// 描 述:错误页控制器
  14. /// </summary>
  15. public class ErrorController : Controller
  16. {
  17. /// <summary>
  18. /// 错误页面(异常页面)
  19. /// </summary>
  20. /// <param name="message"></param>
  21. /// <returns></returns>
  22. public ActionResult ErrorMessage(string message)
  23. {
  24. Dictionary<string, string> modulesError = (Dictionary<string, string>)HttpContext.Application["error"];
  25. ViewData["Message"] = modulesError;
  26. return View();
  27. }
  28. /// <summary>
  29. /// 错误页面(错误路径404)
  30. /// </summary>
  31. /// <returns></returns>
  32. public ActionResult ErrorPath404()
  33. {
  34. return View();
  35. }
  36. /// <summary>
  37. /// 错误页面(升级浏览器软件)
  38. /// </summary>
  39. /// <returns></returns>
  40. public ActionResult ErrorBrowser()
  41. {
  42. return View();
  43. }
  44. }
  45. }