diff --git a/PlumbingRepair/PlumbingRepairBusinessLogic/BusinessLogics/OrderLogic.cs b/PlumbingRepair/PlumbingRepairBusinessLogic/BusinessLogics/OrderLogic.cs index dfdb57d..74b95f7 100644 --- a/PlumbingRepair/PlumbingRepairBusinessLogic/BusinessLogics/OrderLogic.cs +++ b/PlumbingRepair/PlumbingRepairBusinessLogic/BusinessLogics/OrderLogic.cs @@ -79,12 +79,11 @@ namespace PlumbingRepairBusinessLogic.BusinessLogics { throw new ArgumentNullException(nameof(model)); } - if (model.Status + 1 != newStatus) + if (viewModel.Status + 1 != newStatus) { _logger.LogWarning("Status update to " + newStatus.ToString() + " operation failed. Order status incorrect."); return false; } - model.Status = newStatus; model.DateCreate = viewModel.DateCreate; model.Sum = viewModel.Sum;