예제 #1
0
        public ActionResult Part1(SuppliesWorkersViewModel model)
        {
            session.Set("LastSubmittedPageSection", "Part1");
            session.Set("LastSubmittedPageId", 1);

            if (!ModelState.IsValid)
            {
                return(View("Eligibility.1", model));
            }

            licenceApplicationPostDataHandler.Update(session.GetCurrentLicenceId(), x => x, model);

            return(RedirectToAction($"Part/2"));
        }
        public ActionResult Index(DeclarationViewModel model)
        {
            session.SetString("LastSubmittedPageSection", "Index");
            session.SetString("LastSubmittedPageId", "Declaration");

            if (!ModelState.IsValid)
            {
                return(View("Index", model));
            }

            licenceApplicationPostDataHandler.Update(session.GetCurrentLicenceId(), x => x, model);

            return(RedirectToAction("TaskList", "Licence"));
        }