public IActionResult Delete(int?id) { if (id == null) { return(NotFound()); } var obj = _alunoService.FindById(id.Value); if (obj == null) { return(NotFound()); } return(View(obj)); }