From e6792a5312f5acec48bc830a65888c8073925420 Mon Sep 17 00:00:00 2001 From: Jon Galloway Date: Tue, 13 Sep 2022 13:57:19 -0700 Subject: [PATCH] Fix for RemovePizza method Fixes #13 --- 4-minimal-api/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/4-minimal-api/README.md b/4-minimal-api/README.md index 3e7e8fa..db214e4 100644 --- a/4-minimal-api/README.md +++ b/4-minimal-api/README.md @@ -191,7 +191,7 @@ First you need some data. To store and manage data, you'll use an in-memory stor public static void RemovePizza(int id) { - _pizzas = _pizzas.FindAll(pizza => pizza.Id == id).ToList(); + _pizzas = _pizzas.FindAll(pizza => pizza.Id != id).ToList(); } } ``` @@ -252,4 +252,4 @@ We're excited to support you on your learning journey! Check out the [.NET Commu # How'd it go? -Please take this quick, [10 question survey](https://aka.ms/WebLearningSeries-git-survey) to give us your thoughts on this lesson & challenge! \ No newline at end of file +Please take this quick, [10 question survey](https://aka.ms/WebLearningSeries-git-survey) to give us your thoughts on this lesson & challenge!