From f806775b7b948d149b60514dd1f1853ee299b782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D1=8F=D1=80=20=D0=90=D0=B3=D0=BB?= =?UTF-8?q?=D0=B8=D1=83=D0=BB=D0=BB=D0=BE=D0=B2?= Date: Mon, 13 Mar 2023 23:11:36 +0400 Subject: [PATCH 1/2] =?UTF-8?q?=D0=AF=20=D0=94=D0=90=D0=A3=D0=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ConfectionaryListImplement/ClientStorage.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ConfectionaryListImplement/ClientStorage.cs b/ConfectionaryListImplement/ClientStorage.cs index 7a43dca..52497c0 100644 --- a/ConfectionaryListImplement/ClientStorage.cs +++ b/ConfectionaryListImplement/ClientStorage.cs @@ -67,11 +67,11 @@ namespace ConfectioneryListImplement public ClientViewModel? Insert(ClientBindingModel model) { model.Id = 1; - foreach (var component in _source.Components) + foreach (var client in _source.Components) { - if (model.Id <= component.Id) + if (model.Id <= client.Id) { - model.Id = component.Id + 1; + model.Id = client.Id + 1; } } var res = Client.Create(model); From c77c0dfae6c890756a4caa6a006a7eae37637a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D1=8F=D1=80=20=D0=90=D0=B3=D0=BB?= =?UTF-8?q?=D0=B8=D1=83=D0=BB=D0=BB=D0=BE=D0=B2?= Date: Mon, 13 Mar 2023 23:12:24 +0400 Subject: [PATCH 2/2] =?UTF-8?q?=D0=AF=20=D0=94=D0=90=D0=A3=D0=9D^2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ConfectionaryListImplement/ClientStorage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ConfectionaryListImplement/ClientStorage.cs b/ConfectionaryListImplement/ClientStorage.cs index 52497c0..7a609c9 100644 --- a/ConfectionaryListImplement/ClientStorage.cs +++ b/ConfectionaryListImplement/ClientStorage.cs @@ -67,7 +67,7 @@ namespace ConfectioneryListImplement public ClientViewModel? Insert(ClientBindingModel model) { model.Id = 1; - foreach (var client in _source.Components) + foreach (var client in _source.Clients) { if (model.Id <= client.Id) {