示例#1
0
 public ActionResult PageNoteFound()
 {
     ErrorScreen screen = new ErrorScreen();
     ViewData.Model = screen;
     Response.StatusCode = (int)HttpStatusCode.NotFound;
     return View("404");
 }
示例#2
0
 /// <summary>
 /// Internal server error
 /// </summary>
 /// <returns></returns>
 public ActionResult InternalServerError()
 {
     ErrorScreen screen = new ErrorScreen();
     ViewData.Model = screen;
     Response.StatusCode = (int)HttpStatusCode.InternalServerError;
     return View("Error");
 }
示例#3
0
 /// <summary>
 /// Session expired
 /// </summary>
 /// <returns></returns>
 public ActionResult SessionExpired()
 {
     ErrorScreen screen = new ErrorScreen();
     ViewData.Model = screen;
     return View("SessionExpired");
 }