예제 #1
0
 public ActionResult Edit(basDisciplina basdisciplina)
 {
     if (ModelState.IsValid)
     {
         db.Entry(basdisciplina).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(basdisciplina));
 }
예제 #2
0
 public ActionResult Edit(basUsuario basusuario)
 {
     if (ModelState.IsValid)
     {
         db.Entry(basusuario).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(basusuario));
 }
예제 #3
0
 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));
 }
예제 #4
0
 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));
 }
예제 #5
0
 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));
 }
예제 #6
0
 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));
 }
예제 #7
0
 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));
 }