diff --git a/CarRepairShop/CarRepairShopListImplement/Implements/OrderStorage.cs b/CarRepairShop/CarRepairShopListImplement/Implements/OrderStorage.cs index 310b1cd..b01179a 100644 --- a/CarRepairShop/CarRepairShopListImplement/Implements/OrderStorage.cs +++ b/CarRepairShop/CarRepairShopListImplement/Implements/OrderStorage.cs @@ -103,11 +103,11 @@ namespace CarRepairShopListImplement.Implements { if (model == null) return null; - var iceCream = _source.Repairs.FirstOrDefault(x => x.Id == model.Id); + var repair = _source.Repairs.FirstOrDefault(x => x.Id == model.Id); var client = _source.Clients.FirstOrDefault(x => x.Id == model.Id); var implementer = _source.Implementers.FirstOrDefault(x => x.Id == model.ImplementerId); - if (iceCream != null) - model.RepairName = iceCream.RepairName; + if (repair != null) + model.RepairName = repair.RepairName; if (client != null) model.ClientFIO = client.ClientFIO; if (implementer != null) diff --git a/CarRepairShop/CarRepairShopRestApi/Controllers/MainController.cs b/CarRepairShop/CarRepairShopRestApi/Controllers/MainController.cs index 10b330d..fba1308 100644 --- a/CarRepairShop/CarRepairShopRestApi/Controllers/MainController.cs +++ b/CarRepairShop/CarRepairShopRestApi/Controllers/MainController.cs @@ -29,7 +29,7 @@ namespace CarRepairShopRestApi.Controllers } catch (Exception ex) { - _logger.LogError(ex, "Ошибка получения списка продуктов"); + _logger.LogError(ex, "Ошибка получения списка ремонтов"); throw; } } @@ -45,7 +45,7 @@ namespace CarRepairShopRestApi.Controllers } catch (Exception ex) { - _logger.LogError(ex, "Ошибка получения продукта по id={Id}", repairId); + _logger.LogError(ex, "Ошибка получения ремонта по id={Id}", repairId); throw; } }