PIbd-22. Stroev V.M. Lab Work 06 #6

Closed
StroevVladimir wants to merge 6 commits from Lab6 into Lab5
Showing only changes of commit 82bf46bd2d - Show all commits

View File

@ -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;