From c9f01fea91c5d648aa67a489605f14943856d9fe Mon Sep 17 00:00:00 2001 From: Chika Date: Mon, 25 Jul 2022 09:46:13 +0300 Subject: [PATCH] fix other Modification params is null --- ELT.Client/Managers/Insurance/KaskoManager.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ELT.Client/Managers/Insurance/KaskoManager.cs b/ELT.Client/Managers/Insurance/KaskoManager.cs index bb40caa..6bfc7d3 100644 --- a/ELT.Client/Managers/Insurance/KaskoManager.cs +++ b/ELT.Client/Managers/Insurance/KaskoManager.cs @@ -24,10 +24,9 @@ namespace ELT.Client.Managers.Insurance kaskoParams.UsageCityKLADR = preRequestData.Kladr; kaskoParams.Mark = preRequestData.Brand; kaskoParams.Model = preRequestData.Model; - kaskoParams.Modification = new Modification - { - Name = preRequestData.Modification - }; + + if (kaskoParams.Modification != null) + kaskoParams.Modification.Name = preRequestData.Modification; var specialMachinery = calculateKaskoRequest.Preparams.SpecialMachinery; specialMachinery.SpecialMachineryMark = preRequestData.Brand;