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() {