From 218ba80bf653f477725f0c855f40189d4f0a435c Mon Sep 17 00:00:00 2001 From: dasha Date: Sun, 12 Feb 2023 12:27:26 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D1=81=D0=BB=D0=B5=D0=B4=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=84=D0=B8=D0=BA=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SushiBar/SushiBarBusinessLogic/BusinessLogics/OrderLogic.cs | 4 ---- SushiBar/SushiBarListImplement/Models/Order.cs | 6 ------ 2 files changed, 10 deletions(-) diff --git a/SushiBar/SushiBarBusinessLogic/BusinessLogics/OrderLogic.cs b/SushiBar/SushiBarBusinessLogic/BusinessLogics/OrderLogic.cs index 31e9042..c4393ef 100644 --- a/SushiBar/SushiBarBusinessLogic/BusinessLogics/OrderLogic.cs +++ b/SushiBar/SushiBarBusinessLogic/BusinessLogics/OrderLogic.cs @@ -86,10 +86,6 @@ namespace SushiBarBusinessLogic.BusinessLogics return false; } model.Status = newStatus; - model.SushiId = viewModel.SushiId; - model.Count = viewModel.Count; - model.Sum = viewModel.Sum; - model.DateCreate = viewModel.DateCreate; if (model.Status == OrderStatus.Выдан) model.DateImplement = DateTime.Now; else { diff --git a/SushiBar/SushiBarListImplement/Models/Order.cs b/SushiBar/SushiBarListImplement/Models/Order.cs index 473e056..522d392 100644 --- a/SushiBar/SushiBarListImplement/Models/Order.cs +++ b/SushiBar/SushiBarListImplement/Models/Order.cs @@ -37,13 +37,7 @@ namespace SushiBarListImplement.Models { return; } - SushiId = model.SushiId; - Count = model.Count; - Sum = model.Sum; Status = model.Status; - DateCreate = model.DateCreate; - DateImplement = model.DateImplement; - Id = model.Id; } public OrderViewModel GetViewModel => new() {