コード例 #1
0
        public IActionResult Index(JavaScriptWizardModel model)
        {
            if (ModelState.IsValid)
            {
                var positions = getPositions(model.NeededSkills, model.OpenPostionSkillLevel, model.OpenPositionDescription);

                _Uow.CollaborationSpaceRepository.Insert(model.NewWorkspace);
                foreach (var item in positions)
                {
                    model.NewWorkspace.OpenPositions.Add(item);
                }
                _Uow.Save();

                return(View("Completed", model));
            }
            ViewBag.ErrorMessage = ModelState.Keys.SelectMany(key => this.ModelState[key].Errors);
            return(View("Index"));
        }
コード例 #2
0
        public IActionResult Index(JavaScriptWizardModel model)
        {
            if (ModelState.IsValid)
            {

                var positions = getPositions(model.NeededSkills, model.OpenPostionSkillLevel, model.OpenPositionDescription);

                _Uow.CollaborationSpaceRepository.Insert(model.NewWorkspace);
                foreach (var item in positions)
                {
                    model.NewWorkspace.OpenPositions.Add(item);
                }
                _Uow.Save();

                return View("Completed", model);
            }
            ViewBag.ErrorMessage = ModelState.Keys.SelectMany(key => this.ModelState[key].Errors);
            return View("Index");
        }
コード例 #3
0
        public IActionResult Index()
        {
            var model = new JavaScriptWizardModel();

            return(View("Index", model));
        }
コード例 #4
0
 public IActionResult Index()
 {
     var model = new JavaScriptWizardModel();
     return View("Index", model);
 }