Fix for RemovePizza method

Fixes #13
This commit is contained in:
Jon Galloway 2022-09-13 13:57:19 -07:00 committed by GitHub
parent c8349d5460
commit e6792a5312
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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!
Please take this quick, [10 question survey](https://aka.ms/WebLearningSeries-git-survey) to give us your thoughts on this lesson & challenge!