KaskoManager: fix SpecialMachinery params

This commit is contained in:
vchikalkin 2021-11-19 13:00:48 +03:00
parent 22c3340081
commit 291f9f2b6c
3 changed files with 7 additions and 6 deletions

View File

@ -25,7 +25,7 @@ namespace ELT.Client.Managers.Insurance
kaskoParams.Mark = preRequestData.Brand;
kaskoParams.Model = preRequestData.Model;
var specialMachinery = preRequestData.SpecialMachinery;
var specialMachinery = calculateKaskoRequest.Preparams.SpecialMachinery;
specialMachinery.SpecialMachineryMark = preRequestData.Brand;
specialMachinery.SpecialMachineryModel = preRequestData.Model;
kaskoParams.SpecialMachinery = specialMachinery;

View File

@ -1,12 +1,9 @@
using ELTKasko;
namespace ELT.Client.Models.Insurance
namespace ELT.Client.Models.Insurance
{
public class ELTPreData
{
public string Kladr { get; set; }
public string Brand { get; set; }
public string Model { get; set; }
public SpecialMachinery SpecialMachinery { get; set; }
}
}

View File

@ -1,9 +1,13 @@
namespace ELT.Client.Models.Insurance
using ELTKasko;
namespace ELT.Client.Models.Insurance
{
public class Preparams
{
public string Kladr { get; set; }
public string BrandId { get; set; }
public string ModelId { get; set; }
public SpecialMachinery SpecialMachinery { get; set; }
}
}