fix other Modification params is null

This commit is contained in:
Chika 2022-07-25 09:46:13 +03:00
parent 50cc02cd62
commit c9f01fea91

View File

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