46 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Learun.Application.Web.Controllers
{
/// <summary>
/// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
/// Copyright (c) 2013-2018 Hexagon PPM
/// 创建人:研发部
/// 日 期2017.03.09
/// 描 述:错误页控制器
/// </summary>
public class ErrorController : Controller
{
/// <summary>
/// 错误页面(异常页面)
/// </summary>
/// <param name="message"></param>
/// <returns></returns>
public ActionResult ErrorMessage(string message)
{
Dictionary<string, string> modulesError = (Dictionary<string, string>)HttpContext.Application["error"];
ViewData["Message"] = modulesError;
return View();
}
/// <summary>
/// 错误页面错误路径404
/// </summary>
/// <returns></returns>
public ActionResult ErrorPath404()
{
return View();
}
/// <summary>
/// 错误页面(升级浏览器软件)
/// </summary>
/// <returns></returns>
public ActionResult ErrorBrowser()
{
return View();
}
}
}