Пример #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));
 }