public ActionResult SalaryTable(SalaryResult sr)
        {
            Calculate calculation = new Calculate();
            double    IYPO        = _context.SalaryCalculationConstants.Where(x => x.SCCCode == "IYPO").Select(x => x.SCCRatio).FirstOrDefault();
            double    IKVSPO      = _context.SalaryCalculationConstants.Where(x => x.SCCCode == "IKVSPO").Select(x => x.SCCRatio).FirstOrDefault();
            double    IGSSPO      = _context.SalaryCalculationConstants.Where(x => x.SCCCode == "IGSSPO").Select(x => x.SCCRatio).FirstOrDefault();
            double    IISO        = _context.SalaryCalculationConstants.Where(x => x.SCCCode == "IISO").Select(x => x.SCCRatio).FirstOrDefault();
            double    IDVO        = _context.SalaryCalculationConstants.Where(x => x.SCCCode == "IDVO").Select(x => x.SCCRatio).FirstOrDefault();

            string disability       = "";
            string married          = "";
            string spouseWork       = "";
            string retired          = "";
            int    numberOfChildren = 0;

            List <SalaryResult> resultList = new List <SalaryResult>();
            double insurance      = calculation.EmployeeInsurance(sr.rawSalary, IYPO, IKVSPO, IGSSPO, IISO);
            double stampTax       = calculation.StampTax(sr.rawSalary, IDVO);
            double minLivingAllow = calculation.MinLivingAllowance(married, spouseWork, numberOfChildren);

            if (sr.hiddenBag == "Brüt")
            {
                for (int numberOfMonths = 1; numberOfMonths <= 12; numberOfMonths++)
                {
                    double cita         = calculation.CITA(sr.rawSalary, insurance, numberOfMonths);
                    double mita         = calculation.MITA(cita, numberOfMonths);
                    double resultSalary = calculation.GrossToNet(sr.rawSalary, IYPO, IKVSPO, IGSSPO, IISO, numberOfMonths, IDVO, disability, married, spouseWork, retired, numberOfChildren);

                    resultList.Add(new SalaryResult()
                    {
                        rawSalary      = sr.rawSalary,
                        insurance      = insurance,
                        mita           = mita,
                        stampTax       = stampTax,
                        cita           = cita,
                        resultSalary   = resultSalary,
                        minLivingAllow = minLivingAllow
                    });
                }
            }
            else
            {
                for (int numberOfMonths = 1; numberOfMonths <= 12; numberOfMonths++)
                {
                    double cita         = calculation.CITA(sr.rawSalary, insurance, numberOfMonths);
                    double mita         = calculation.MITA(cita, numberOfMonths);
                    double resultSalary = calculation.NetToGross(sr.rawSalary, IYPO, IKVSPO, IGSSPO, IISO, numberOfMonths, IDVO, disability, married, spouseWork, retired, numberOfChildren);

                    resultList.Add(new SalaryResult()
                    {
                        resultSalary   = resultSalary,
                        insurance      = insurance,
                        mita           = mita,
                        stampTax       = stampTax,
                        cita           = cita,
                        rawSalary      = sr.rawSalary,
                        minLivingAllow = minLivingAllow
                    });
                }
            }
            ViewBag.resultList = resultList;
            ViewBag.hiddenBag  = sr.hiddenBag;
            return(View());
        }