Merge branch 'LabWork02_Hard' into LabWork03_Hard

This commit is contained in:
Safgerd 2023-04-28 16:58:29 +04:00
commit b7b84b1e03

View File

@ -84,7 +84,7 @@ namespace AutomobilePlantBusinessLogic.BusinessLogics
var car = _carStorage.GetElement(new CarSearchModel() { Id = model.CarId }); var car = _carStorage.GetElement(new CarSearchModel() { Id = model.CarId });
if (car == null) if (car == null)
{ {
_logger.LogWarning("Status update to " + newStatus.ToString() + " operation failed. Document not found."); _logger.LogWarning("Status update to " + newStatus.ToString() + " operation failed. Car not found.");
return false; return false;
} }
if (CheckThenSupplyMany(car, model.Count) == false) if (CheckThenSupplyMany(car, model.Count) == false)