Все работает, осталась сдача
This commit is contained in:
parent
ea538ac02c
commit
82bf46bd2d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user