예제 #1
0
        public virtual ActionResult OPIStep1Save(OLEPersonalInformationPage model)
        {
            if (model == null || model.ApplicationId == 0)
            {
                return this.LoadOrCreateAndPrefillNewApplication();
            }

            this.businessLogic.SavePersonalInformationPageModel(model);

            if (!this.ModelState.IsValid)
            {
                var modelTemp = this.businessLogic.GetPersonalInformationPageModel(model.ApplicationId);
                return this.View(MVC.OLE.Views.Views.OPI_Step1, modelTemp);
            }

            return this.RedirectToRoutePermanent("ole_opi_step2", new { controller = "OLE", id = model.ApplicationId });
        }
예제 #2
0
        public virtual ActionResult OPIStep1AjaxSave(OLEPersonalInformationPage model)
        {
            OPIStep1Save(model);

            return this.JsonPublic(new { result = true });
        }