예제 #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");
 }