Пул
This commit is contained in:
parent
a72db9a3e5
commit
988a1a41fb
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user