Пример #1
0
        public ActionResult EditPersonalInfo(ProfileModel model)
        {
            if (!ModelState.IsValid)
            {
                return(MvcHelper.JsonErrorResult("Model is invalid."));
            }

            return(MvcHelper.JsonSuccessResult());
        }
Пример #2
0
        public ActionResult EditBankInformation(EditBankInformationModel model)
        {
            if (!ModelState.IsValid)
            {
                return(MvcHelper.JsonErrorResult("Model is invalid."));
            }

            // backend update code goes here...

            return(MvcHelper.JsonSuccessResult());
        }
Пример #3
0
        public ActionResult EDeliveryPreferences(EDeliveryPreferencesModel model)
        {
            if (!ModelState.IsValid)
            {
                return(MvcHelper.JsonErrorResult("Model is invalid."));
            }

            // backend update code goes here...

            return(MvcHelper.JsonSuccessResult());
        }
Пример #4
0
        public ActionResult ChangePassword(ChangeProfilePasswordModel model)
        {
            if (!ModelState.IsValid)
            {
                return(MvcHelper.JsonErrorResult("Model is invalid."));
            }

            // backend update code goes here...

            return(MvcHelper.JsonSuccessResult());
        }
Пример #5
0
        public ActionResult EditEmployeePhone(ChangeEmployeePhoneModel model)
        {
            if (!ModelState.IsValid)
            {
                return(MvcHelper.JsonErrorResult("Model is invalid."));
            }

            // backend update code goes here...

            return(MvcHelper.JsonSuccessResult());
        }
Пример #6
0
        public JsonResult CollegeFundingCalculator(CollegeFundingCalculatorModel model)
        {
            if (!ModelState.IsValid)
            {
                return(MvcHelper.JsonErrorResult("Model is invalid."));
            }

            return(MvcHelper.JsonSuccessResult(new
            {
                totalCollegeCosts = "$23,123",
                collegeSavingsNeed = "$17,534",
                amountProvided = "$5,555",
                savingsPerMonth = "$911",
                lumpSumSavingsNeed = "$12,345"
            }));
        }
Пример #7
0
        public JsonResult AssetAllocationTool(AssetAllocationToolModel model)
        {
            if (!ModelState.IsValid)
            {
                return(MvcHelper.JsonErrorResult("Model is invalid."));
            }

            var result = new RecommendedPortfolioModel
            {
                RecommendedPortfolio = "Aggressive",
                PortfolioModels      = new List <PortfolioModel>
                {
                    new PortfolioModel
                    {
                        FundName               = "International stocks",
                        Conservative           = 10,
                        ModeratelyConservative = 10,
                        Moderate               = 10,
                        ModeratelyAggressive   = 10,
                        Aggressive             = 10
                    },
                    new PortfolioModel
                    {
                        FundName               = "Small-Cap Stocks",
                        Conservative           = 15,
                        ModeratelyConservative = 15,
                        Moderate               = 15,
                        ModeratelyAggressive   = 15,
                        Aggressive             = 15
                    },
                    new PortfolioModel
                    {
                        FundName               = "Mid-Cap Stocks",
                        Conservative           = 30,
                        ModeratelyConservative = 30,
                        Moderate               = 30,
                        ModeratelyAggressive   = 30,
                        Aggressive             = 30
                    },
                    new PortfolioModel
                    {
                        FundName               = "Large-Cap Stocks",
                        Conservative           = 10,
                        ModeratelyConservative = 10,
                        Moderate               = 10,
                        ModeratelyAggressive   = 10,
                        Aggressive             = 10
                    },
                    new PortfolioModel
                    {
                        FundName               = "Asset allocation Funds",
                        Conservative           = 15,
                        ModeratelyConservative = 15,
                        Moderate               = 15,
                        ModeratelyAggressive   = 15,
                        Aggressive             = 15
                    },
                    new PortfolioModel
                    {
                        FundName               = "Bonds",
                        Conservative           = 30,
                        ModeratelyConservative = 30,
                        Moderate               = 30,
                        ModeratelyAggressive   = 30,
                        Aggressive             = 30
                    },
                    new PortfolioModel
                    {
                        FundName               = "FIxed account",
                        Conservative           = 10,
                        ModeratelyConservative = 10,
                        Moderate               = 10,
                        ModeratelyAggressive   = 10,
                        Aggressive             = 10
                    }
                },
                Funds = new List <PortfolioFundModel>
                {
                    new PortfolioFundModel
                    {
                        FundName = "Large Cap Stocks",
                        Value    = 30,
                        Items    = new List <string>
                        {
                            "Dodge & Cox Stocks",
                            "Fidelity Contrafund",
                            "Fidelity Growth Company"
                        }
                    },
                    new PortfolioFundModel
                    {
                        FundName = "Small-Cap Stocks",
                        Value    = 5,
                        Items    = new List <string>
                        {
                            "Ohio DC Small-Cap Growth",
                            "Ohio DC Small-Cap Value",
                            "Vanguard Small-Cap Index (VSCPX)"
                        }
                    },
                    new PortfolioFundModel
                    {
                        FundName = "Mid-Cap Stocks",
                        Value    = 11,
                        Items    = new List <string>
                        {
                            "Vanguard Capital Opportunity (VHCAX)"
                        }
                    },
                    new PortfolioFundModel
                    {
                        FundName = "Large Cap Stocks",
                        Value    = 44,
                        Items    = new List <string>
                        {
                            "Ohio DC Small-Cap Growth",
                            "Ohio DC Small-Cap Value",
                            "Vanguard Small-Cap Index (VSCPX)",
                            "Vanguard Small-Cap Index (VSCPX)"
                        }
                    },
                    new PortfolioFundModel
                    {
                        FundName = "Bonds",
                        Value    = 11,
                        Items    = new List <string>
                        {
                            "Ohio DC Small-Cap Growth",
                            "Ohio DC Small-Cap Value"
                        }
                    },
                    new PortfolioFundModel
                    {
                        FundName = "Mid-Cap Stocks",
                        Value    = 11,
                        Items    = new List <string>
                        {
                            "Vanguard Capital Opportunity (VHCAX)"
                        }
                    }
                }
            };

            return(MvcHelper.JsonSuccessResult(result));
        }