mirror of
https://github.com/dotnet/intro-to-dotnet-web-dev.git
synced 2025-12-06 05:32:03 +01:00
parent
c8349d5460
commit
e6792a5312
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue