3 instantiations of Person
SimpleWebSiteWithWebApplicationBuilder (3)
Program.cs (3)
24
app.MapGet("/json", () => Json(new
Person
("John", 42)));
26
app.MapGet("/ok-object", () => Ok(new
Person
("John", 42)));
28
app.MapGet("/accepted-object", () => Accepted("/ok-object", new
Person
("John", 42)));
2 references to Person
SimpleWebSiteWithWebApplicationBuilder (2)
Program.cs (2)
47
app.MapPost("/accepts-default", (
Person
person) => Results.Ok(person.Name));
48
app.MapPost("/accepts-xml", () => Accepted()).Accepts<
Person
>("application/xml");