public ActionResult Index() { var technologies = GetTechnologies(); var model = new DropdownlistTecnologyModel(); model.Technologies = GetSelectListItems(technologies); return(View(model)); }
public ActionResult Index(DropdownlistTecnologyModel model) { var technologies = GetTechnologies(); model.Technologies = GetSelectListItems(technologies); if (ModelState.IsValid) { Session["DropdownlistTecnologyModel"] = model; return(RedirectToAction("Abilities")); } return(View("Index", model)); }