Using Minimal APIs in ASP.NET Core Razor Pages

added by DotNetKicks
12/14/2021 8:44:20 PM

404 Views

Up until .NET 6, your options for working with JSON in Razor Pages were pretty much restricted to using page handler methods to accept and return JSON, or adding Web API controllers to the application. Returning JsonResults from page handler methods work, but there is something a little hacky about this approach.


0 comments