3 instantiations of Todo
MinimalSample (3)
Program.cs (3)
75>= 1 and <= 10 => TypedResults.Ok(new Todo(id, "Walk the dog")), 95app.MapGet("/todos", () => new Todo[] { new Todo(1, "Walk the dog"), new Todo(2, "Come back home") });
2 references to Todo
MinimalSample (2)
Program.cs (2)
72app.MapGet("/todo/{id}", Results<Ok<Todo>, NotFound, BadRequest> (int id) => id switch 95app.MapGet("/todos", () => new Todo[] { new Todo(1, "Walk the dog"), new Todo(2, "Come back home") });