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

29 lines
771 B
C#

// Copyright (c) Microsoft Open Technologies, Inc. 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("/ErrorFromGlobalImport")]
public IActionResult GlobalImportError()
{
return View("~/Views/ErrorFromGlobalImport/Index");
}
}
}