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")); }
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"); }
public IActionResult Index() { var model = new JavaScriptWizardModel(); return(View("Index", model)); }
public IActionResult Index() { var model = new JavaScriptWizardModel(); return View("Index", model); }