public ActionResult Delete(int id) { if (ModelState.IsValid) { var aluno = _alunoAppService.GetById(id); _alunoAppService.Delete(aluno); return(RedirectToAction("Index")); } return(View()); }