Beispiel #1
0
 public ActionResult Cadastrar(Tarefa tarefa)
 {
     if (ModelState.IsValid)
     {
         taferaDAO.Cadastrar(tarefa);
         return(RedirectToAction("Listar"));
     }
     else
     {
         return(View("Listar", tarefa));
     }
 }