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