API
TypedResults.Ok<T>
Creates a typed successful JSON result.
Formal Syntax & Structure
csharp syntaxcsharp
TypedResults.Ok(new BookDto(2, "Map Atlas"))Working Example
Example Snippetcsharp
// Documentary fragment; see linked lesson for context.TypedResults.Ok(new BookDto(2, "Map Atlas"))