This commit is contained in:
Yunusov_Niyaz 2024-04-27 14:21:32 +04:00
parent a72db9a3e5
commit 988a1a41fb
2 changed files with 5 additions and 5 deletions

View File

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

View File

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