예제 #1
0
 public ActionResult CadastroAula(Aula aula)
 {
     if (ModelState.IsValid)
     {
         var Cad = new AulaRepositorio();
         Cad.Salvar(aula);
         return(RedirectToAction("Index"));
     }
     return(View());
 }
예제 #2
0
        public ActionResult ListarAulas()
        {
            var ListaAulas = new AulaRepositorio();

            return(View(ListaAulas.ListarTodos()));
        }