aspnetcore/test/WebSites/ErrorPageMiddlewareWebSite/ErrorPageMiddlewareControll...

29 lines
759 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.AspNetCore.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.cshtml");
}
}
}