Hi, my name is Harold Javier. I am a .NET developer, trainer, development coach, mentor, and consultant from the Philippines. I'm an avid user and developer of ASP.NET MVC, ASP.NET Core MVC and ASP.NET Core WebAPI. Previously, I developed numerous ASP.NET Web Form projects for some big & small-sized institutions and organizations.
26 September 2018
ASP.NET Core MVC's Action Result naming changes
Working from version 1.1 to 2.1. I found this very handy:
Following methods on the Controller base class have been renamed for the sake of consistency and making them less verbose.
HttpUnauthorized => Unauthorized HttpNotFound(and its overloads) => NotFound HttpBadRequest(and its overloads) => BadRequest
Following action result types have also been renamed. The Http prefix has been removed.