diff --git a/Backend Web with Web APIs/sample-code/MyNewApp/Program.cs b/Backend Web with Web APIs/sample-code/MyNewApp/Program.cs index 3c462f8..11c44ae 100644 --- a/Backend Web with Web APIs/sample-code/MyNewApp/Program.cs +++ b/Backend Web with Web APIs/sample-code/MyNewApp/Program.cs @@ -26,7 +26,7 @@ app.MapPost("/todos", (Todo task, ITaskService service) => { service.AddTodo(task); - return TypedResults.Created($"/todos/{id}", task); + return TypedResults.Created("/todos/{id}", task); }) .AddEndpointFilter(async (context, next) => { var taskArgument = context.GetArgument(0); @@ -89,4 +89,4 @@ public List GetTodos() { return _todos; } -} \ No newline at end of file +}