29 lines
748 B
C#
29 lines
748 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using Microsoft.AspNet.Mvc;
|
|
|
|
namespace ErrorPageMiddlewareWebSite
|
|
{
|
|
public class ErrorPageMiddlewareController : Controller
|
|
{
|
|
[HttpGet("/CompilationFailure")]
|
|
public IActionResult CompilationFailure()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("/ParserError")]
|
|
public IActionResult ParserError()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet("/ErrorFromViewImports")]
|
|
public IActionResult ViewImportsError()
|
|
{
|
|
return View("~/Views/ErrorFromViewImports/Index");
|
|
}
|
|
}
|
|
}
|