News

To implement global exception handling in ASP.Net Core Web API, we can take advantage of the built-in middleware UseExceptionHandler.
In the “Create a New ASP.NET Core Web Application” window shown next, select .NET Core as the runtime and ASP.NET Core 2.2 (or later) from the drop-down list at the top.