Пофикшены конфликты

This commit is contained in:
ArtemEmelyanov 2023-05-03 21:25:13 +04:00
parent ddc009deae
commit f946e46107

View File

@ -81,19 +81,6 @@ namespace FishFactoryBusinessLogic.BusinessLogics
return false; return false;
} }
return true; return true;
}
model.Status = newStatus;
if (model.Status == OrderStatus.Выдан)
model.DateImplement = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
if (_orderStorage.Update(model) == null)
{
_logger.LogWarning("Update operation failed");
return false;
}
return true;
}
_logger.LogWarning("Changing status operation faled: Current-{Status}:required-{requiredStatus}.", model.Status, newStatus);
throw new ArgumentException($"Невозможно приствоить статус {newStatus} заказу с текущим статусом {model.Status}");
} }
public bool DeliveryOrder(OrderBindingModel model) public bool DeliveryOrder(OrderBindingModel model)
{ {