AspNetCore Controller Return Types that Implement IActionResult

On my current project, we return Task<IActionResult> in the controller actions.  It makes it fairly painless to write useful unit tests. Middleware Pipeline  – a common location for returning errors, like via SetForbiddenResponse() Because I was having issues locating these in MSDN (not there, look in https://docs.microsoft.com/en-us/aspnet/core/api instead), here’s a list of valid types that implement IActionResult in AspNetCore (dotnet …

Swagger fix for dotnetcore

I’m currently working on a Point of Sale type API utilizing dotnetcore.  We use Swagger / Swashbuckle to handle our documentation.  It’s a great project and I really appreciate the work that’s been put into it.  As we all know, developers hate to write documentation and Swagger goes a long way towards the holy grail of maintained documentation. In our …