Managers: update KaskoManager for new params

This commit is contained in:
Chika 2021-11-17 16:11:50 +03:00
parent 50cea6c275
commit a483c6c890
2 changed files with 12 additions and 4 deletions

View File

@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ELT.Client.Models.Insurance;
@ -26,6 +25,11 @@ namespace ELT.Client.Managers.Insurance
kaskoParams.Mark = preRequestData.Brand;
kaskoParams.Model = preRequestData.Model;
var specialMachinery = preRequestData.SpecialMachinery;
specialMachinery.SpecialMachineryMark = preRequestData.Brand;
specialMachinery.SpecialMachineryModel = preRequestData.Model;
kaskoParams.SpecialMachinery = specialMachinery;
var result = new Dictionary<string, KASKOCalculationResult>();
@ -40,11 +44,12 @@ namespace ELT.Client.Managers.Insurance
}
, null
, companyId
, null
, 0
, null
, null
, "13"
, null
, null
, false
, null
, null

View File

@ -1,9 +1,12 @@
namespace ELT.Client.Models.Insurance
using ELTKasko;
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; }
}
}