diff --git a/fundamentals/minimal-apis/samples/MultipleResultTypes/Program.cs b/fundamentals/minimal-apis/samples/MultipleResultTypes/Program.cs index 54a5156..0fc3250 100644 --- a/fundamentals/minimal-apis/samples/MultipleResultTypes/Program.cs +++ b/fundamentals/minimal-apis/samples/MultipleResultTypes/Program.cs @@ -36,5 +36,7 @@ app.MapGet("/book{id}", Results, NotFound> (int id, List bookList : TypedResults.NotFound(); }); +app.MapGet("/books", (List bookList) => TypedResults.Ok(bookList)); + app.Run(); record Book(int Id, string Title, string Author);