public ActionResult Edit(basDisciplina basdisciplina) { if (ModelState.IsValid) { db.Entry(basdisciplina).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(basdisciplina)); }
public ActionResult Edit(basUsuario basusuario) { if (ModelState.IsValid) { db.Entry(basusuario).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(basusuario)); }
public ActionResult Edit(basVaga_Estagio_Emprego basvaga_estagio_emprego) { if (ModelState.IsValid) { db.Entry(basvaga_estagio_emprego).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(basvaga_estagio_emprego)); }
public ActionResult Edit(basUsuario basusuario) { if (ModelState.IsValid) { db.Entry(basusuario).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.DisciplinaID = new SelectList(db.Disciplina, "DisciplinaID", "nomeDisciplina", basusuario.DisciplinaID); return(View(basusuario)); }
public ActionResult Edit(basMensagemForum basmensagemforum) { if (ModelState.IsValid) { db.Entry(basmensagemforum).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.matriculaAlunoID = new SelectList(db.Alunos, "matriculaAlunoID", "email", basmensagemforum.matriculaAlunoID); return(View(basmensagemforum)); }
public ActionResult Edit(basVaga_Estagio_Emprego basvaga_estagio_emprego) { if (ModelState.IsValid) { db.Entry(basvaga_estagio_emprego).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.matriculaInstituicaoID = new SelectList(db.Instituicoes, "matriculaInstituicaoID", "senha", basvaga_estagio_emprego.matriculaInstituicaoID); return(View(basvaga_estagio_emprego)); }
public ActionResult Edit(basProfessor basprofessor) { if (ModelState.IsValid) { db.Entry(basprofessor).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.DisciplinaID = new SelectList(db.Disciplinas, "DisciplinaID", "nomeDisciplina", basprofessor.DisciplinaID); ViewBag.matriculaInstituicaoID = new SelectList(db.Instituicoes, "matriculaInstituicaoID", "senha", basprofessor.matriculaInstituicaoID); return(View(basprofessor)); }