Esempio n. 1
0
        public ActionResult Create(gesc_disciplina gesc_disciplina)
        {
            if (ModelState.IsValid)
            {
                appDisciplina.Salvar(gesc_disciplina);
                ExibeMensagem('S', 1);
                return(RedirectToAction("Index"));
            }

            return(View(gesc_disciplina));
        }
Esempio n. 2
0
 public ActionResult Editar(Disciplina disciplina)
 {
     if (ModelState.IsValid)
     {
         var appDisciplina = new DisciplinaAplicacao();
         appDisciplina.Salvar(disciplina);
         return(RedirectToAction("Visualizar"));
     }
     return(View(disciplina));
 }