fix Osago modification is null

This commit is contained in:
vchikalkin 2023-03-13 11:58:24 +03:00
parent c9f01fea91
commit e5e5bdebe0

View File

@ -30,7 +30,8 @@ namespace ELT.Client.Managers.Insurance
eltPreData.Brand = mappedCars.Mark;
eltPreData.Model = mappedCars.Model;
eltPreData.Modification = mappedCars.Modification.Name;
if (mappedCars?.Modification?.Name != null)
eltPreData.Modification = mappedCars.Modification.Name;
//CAR
return eltPreData;