public IActionResult Result(InsuranceRiskInformation riskInformation)
        {
            decimal riskFactor = new CalculateInsuranceRiskFactor().GetRiskFactor(riskInformation);

            ViewBag.RiskFactor = riskFactor.ToString(CultureInfo.InvariantCulture);

            return(View());
        }
Exemplo n.º 2
0
 public decimal GetRiskFactor(InsuranceRiskInformation riskInformation)
 {
     return(GetGenderMultiplier(riskInformation.Gender)
            + GetAgeMultiplier(riskInformation.AgeGroup)
            + GetProvinceMultiplier(riskInformation.Province));
 }