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

            // backend update code goes here...

            return(MvcHelper.JsonSuccessResult());
        }
Пример #2
0
        /// <summary>
        /// Gets the Edit Bank Information page.
        /// </summary>
        /// <returns>The action result.</returns>
        public ActionResult EditBankInformation()
        {
            var model = new EditBankInformationModel {
                BankName = "City Bank"
            };

            ViewBag.DesktopStep1Instructions = MvcHelper.CreateFakeInstructions(4);
            ViewBag.DesktopStep2Instructions = MvcHelper.CreateFakeInstructions(2);
            ViewBag.DesktopStep3Instructions = MvcHelper.CreateFakeInstructions(2);
            ViewBag.DesktopStep4Instructions = MvcHelper.CreateFakeInstructions(2);
            ViewBag.MobileInstructions       = MvcHelper.CreateFakeInstructions(3);
            ViewBag.CurrentPhoneNumber       = "+102-652-985204";
            ViewBag.CurrentEmailMask         = "st****[email protected]";
            ViewBag.Username = "******";
            return(View(model));
        }