Exemplo n.º 1
0
 public IActionResult Delete(Aluno aluno)
 {
     if (ModelState.IsValid)
     {
         _alunoBll.DeletarAluno(aluno);
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View());
     }
 }
Exemplo n.º 2
0
 public IActionResult Delete(int id)
 {
     _alunoBll.DeletarAluno(id);
     return(RedirectToAction("Index"));
 }