Example #1
0
        public ActionResult EDeliveryPreferences(EDeliveryPreferencesModel model)
        {
            if (!ModelState.IsValid)
            {
                return(MvcHelper.JsonErrorResult("Model is invalid."));
            }

            // backend update code goes here...

            return(MvcHelper.JsonSuccessResult());
        }
Example #2
0
        /// <summary>
        /// Gets the E-Delivery Preferences page.
        /// </summary>
        /// <returns>The action result.</returns>
        public ActionResult EDeliveryPreferences()
        {
            var model = new EDeliveryPreferencesModel
            {
                QuarterlyStatementAndFocusNewsLetter = true
            };

            ViewBag.DesktopInstructions = MvcHelper.CreateFakeInstructions(4);
            ViewBag.MobileInstructions  = MvcHelper.CreateFakeInstructions(3);
            return(View(model));
        }