Ejemplo n.º 1
0
        public ActionResult CreateApp(CreateAppVM newAppInfo)
        {
            newAppInfo.CreateStateList(_rops.ReturnListOfStates());
            newAppInfo.CreatePositionsList(_rops.ReturnListOfPositions());
            newAppInfo.CreateDegreesList();

            if (ModelState.IsValid)
            {
                _rops.AddAppToRepo(newAppInfo.ApplicationInfo);

                return View("Confirmation", newAppInfo.ApplicationInfo);
            }

            return View(newAppInfo);
        }
Ejemplo n.º 2
0
        // GET
        public ActionResult CreateApp()
        {
            var newApplication = new CreateAppVM();
            newApplication.ApplicationInfo = new Resume();
            newApplication.CreatePositionsList(_rops.ReturnListOfPositions());
            newApplication.CreateStateList(_rops.ReturnListOfStates());
            newApplication.CreateDegreesList();

            Experience newExp = new Experience();
            newApplication.ApplicationInfo.Experiences.Add(newExp);
            EducationInfo newEdu = new EducationInfo();
            newApplication.ApplicationInfo.Education.Add(newEdu);

            newApplication.ApplicationInfo.AppId = _rops.HighestAppIDNum() + 1;

            return View(newApplication);
        }