public ActionResult Delete(int id, Aluno aluno) { try { aluno = _alunoService.GetAlunoById(id); _alunoService.DeletarAluno(aluno); } catch { TempData["erroExcludeMessage"] = "Erro ao Excluir o usuário"; } return(RedirectToAction("Index")); }