From 69b2c056c3b4e46cfd040979360aa3681a8af103 Mon Sep 17 00:00:00 2001 From: revengel66 Date: Fri, 21 Jun 2024 17:20:23 +0400 Subject: [PATCH] edit code --- Pizzeria/PizzeriaListImplement/DataListSingleton.cs | 2 +- Pizzeria/PizzeriaListImplement/Implements/OrderStorage.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pizzeria/PizzeriaListImplement/DataListSingleton.cs b/Pizzeria/PizzeriaListImplement/DataListSingleton.cs index 230bdf0..366111a 100644 --- a/Pizzeria/PizzeriaListImplement/DataListSingleton.cs +++ b/Pizzeria/PizzeriaListImplement/DataListSingleton.cs @@ -16,7 +16,7 @@ namespace PizzeriaListImplement Orders = new List(); Pizzas = new List(); Clients = new List(); - Implementers = new List(); + Implementers = new List(); } public static DataListSingleton GetInstance() { diff --git a/Pizzeria/PizzeriaListImplement/Implements/OrderStorage.cs b/Pizzeria/PizzeriaListImplement/Implements/OrderStorage.cs index 26894cb..9df05be 100644 --- a/Pizzeria/PizzeriaListImplement/Implements/OrderStorage.cs +++ b/Pizzeria/PizzeriaListImplement/Implements/OrderStorage.cs @@ -63,7 +63,7 @@ namespace PizzeriaListImplement.Implements else if (model.ClientId.HasValue && !model.Id.HasValue) { foreach (var order in _source.Orders) -{ + { if (order.ClientId == model.ClientId) { result.Add(GetViewModel(order));