public ActionResult ValueAdjustmentFactors()
        {
            ValueAdjustmentFactorsModel valueAdjustmentFactorsModel = new ValueAdjustmentFactorsModel
            {
                FACTOR_DC  = VAFList(),
                FACTOR_DDP = VAFList(),
                FACTOR_PER = VAFList(),
                FACTOR_HUC = VAFList(),
                FACTOR_TR  = VAFList(),
                FACTOR_ODE = VAFList(),
                FACTOR_EUE = VAFList(),
                FACTOR_OU  = VAFList(),
                FACTOR_CP  = VAFList(),
                FACTOR_REU = VAFList(),
                FACTOR_IE  = VAFList(),
                FACTOR_OE  = VAFList(),
                FACTOR_MS  = VAFList(),
                FACTOR_FC  = VAFList(),
            };

            return(View(valueAdjustmentFactorsModel));
        }
        public ActionResult ValueAdjustmentFactors(ValueAdjustmentFactorsModel valueAdjustmentFactorsModel)
        {
            valueAdjustmentFactorsModel.FACTOR_DC  = VAFList();
            valueAdjustmentFactorsModel.FACTOR_DDP = VAFList();
            valueAdjustmentFactorsModel.FACTOR_PER = VAFList();
            valueAdjustmentFactorsModel.FACTOR_HUC = VAFList();
            valueAdjustmentFactorsModel.FACTOR_TR  = VAFList();
            valueAdjustmentFactorsModel.FACTOR_ODE = VAFList();
            valueAdjustmentFactorsModel.FACTOR_EUE = VAFList();
            valueAdjustmentFactorsModel.FACTOR_OU  = VAFList();
            valueAdjustmentFactorsModel.FACTOR_CP  = VAFList();
            valueAdjustmentFactorsModel.FACTOR_REU = VAFList();
            valueAdjustmentFactorsModel.FACTOR_IE  = VAFList();
            valueAdjustmentFactorsModel.FACTOR_OE  = VAFList();
            valueAdjustmentFactorsModel.FACTOR_MS  = VAFList();
            valueAdjustmentFactorsModel.FACTOR_FC  = VAFList();



            // Values
            int valueFactorDC  = valueAdjustmentFactorsModel.FACTOR_DC_VALUE;
            int valueFactorDDP = valueAdjustmentFactorsModel.FACTOR_DDP_VALUE;
            int valueFactorPER = valueAdjustmentFactorsModel.FACTOR_PER_VALUE;
            int valueFactorHUC = valueAdjustmentFactorsModel.FACTOR_HUC_VALUE;
            int valueFactorTR  = valueAdjustmentFactorsModel.FACTOR_TR_VALUE;
            int valueFactorODE = valueAdjustmentFactorsModel.FACTOR_ODE_VALUE;
            int valueFactorEUE = valueAdjustmentFactorsModel.FACTOR_EUE_VALUE;
            int valueFactorOU  = valueAdjustmentFactorsModel.FACTOR_OU_VALUE;
            int valueFactorCP  = valueAdjustmentFactorsModel.FACTOR_CP_VALUE;
            int valueFactorREU = valueAdjustmentFactorsModel.FACTOR_REU_VALUE;
            int valueFactorIE  = valueAdjustmentFactorsModel.FACTOR_IE_VALUE;
            int valueFactorOE  = valueAdjustmentFactorsModel.FACTOR_OE_VALUE;
            int valueFactorMS  = valueAdjustmentFactorsModel.FACTOR_MS_VALUE;
            int valueFactorFC  = valueAdjustmentFactorsModel.FACTOR_FC_VALUE;



            // Total degree of influence
            double TDI = valueFactorDC + valueFactorDDP + valueFactorPER + valueFactorHUC + valueFactorTR + valueFactorODE + valueFactorEUE + valueFactorOU + valueFactorCP + valueFactorREU + valueFactorIE + valueFactorOE + valueFactorMS + valueFactorFC;



            double resultValueAdjustmentFactors = (TDI * 0.01) + 0.65;

            #region Sessions for Reports


            Session["valueFactorDC"]  = valueFactorDC;
            Session["valueFactorDDP"] = valueFactorDDP;
            Session["valueFactorPER"] = valueFactorPER;
            Session["valueFactorHUC"] = valueFactorHUC;
            Session["valueFactorTR"]  = valueFactorTR;
            Session["valueFactorODE"] = valueFactorODE;
            Session["valueFactorEUE"] = valueFactorEUE;
            Session["valueFactorOU"]  = valueFactorOU;
            Session["valueFactorCP"]  = valueFactorCP;
            Session["valueFactorREU"] = valueFactorREU;
            Session["valueFactorIE"]  = valueFactorIE;
            Session["valueFactorOE"]  = valueFactorOE;
            Session["valueFactorMS"]  = valueFactorMS;
            Session["valueFactorFC"]  = valueFactorFC;

            Session["resultValueAdjustmentFactors"] = resultValueAdjustmentFactors;


            #endregion



            String Technique = Session["Technique"].ToString();

            if (Technique.Equals("COCOMO1"))
            {
                return(RedirectToAction("LanguageFactor", "Home"));
            }
            if (Technique.Equals("COCOMO2"))
            {
                return(RedirectToAction("LanguageFactor", "Home"));
            }
            if (Technique.Equals("SLIM"))
            {
                return(RedirectToAction("LanguageFactor", "Home"));
            }



            //String Stage = Session["Stage"].ToString();



            //if (Stage.Equals("Basic Stage"))
            //{


            //    return RedirectToAction("ResultBasicStage", "COCOMOI");
            //}

            //if (Stage.Equals("Intermediate Stage"))
            //{

            //    return RedirectToAction("CostDrivers", "COCOMOI");

            //}

            //if (Stage.Equals("Advanced Stage"))
            //{

            //    return RedirectToAction("CostDrivers", "COCOMOI");

            //}



            return(View(valueAdjustmentFactorsModel));
        }