예제 #1
0
 public ActionResult AdicionarResponsavel(Responsavel responsavel)
 {
     if (ModelState.IsValid)
     {
         if (responsavel.ValidaData(responsavel))
         {
             responsavelsDAO.Adicionar(responsavel);
             return(RedirectToAction("Index", "Responsavel"));
         }
     }
     TempData["msg"] = "Data de nascimento inválida";
     return(View(responsavel));
 }