public ActionResult EditPersonalInfo(ProfileModel model) { if (!ModelState.IsValid) { return(MvcHelper.JsonErrorResult("Model is invalid.")); } return(MvcHelper.JsonSuccessResult()); }
public ActionResult EditBankInformation(EditBankInformationModel model) { if (!ModelState.IsValid) { return(MvcHelper.JsonErrorResult("Model is invalid.")); } // backend update code goes here... return(MvcHelper.JsonSuccessResult()); }
public ActionResult EDeliveryPreferences(EDeliveryPreferencesModel model) { if (!ModelState.IsValid) { return(MvcHelper.JsonErrorResult("Model is invalid.")); } // backend update code goes here... return(MvcHelper.JsonSuccessResult()); }
public ActionResult ChangePassword(ChangeProfilePasswordModel model) { if (!ModelState.IsValid) { return(MvcHelper.JsonErrorResult("Model is invalid.")); } // backend update code goes here... return(MvcHelper.JsonSuccessResult()); }
public ActionResult EditEmployeePhone(ChangeEmployeePhoneModel model) { if (!ModelState.IsValid) { return(MvcHelper.JsonErrorResult("Model is invalid.")); } // backend update code goes here... return(MvcHelper.JsonSuccessResult()); }
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" })); }
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)); }