public ActionResult <IEnumerable <Aluno> > GetAluno() { try { return(_alunoRepository.GetAllAunos()); } catch (Exception ex) { return(this.StatusCode(StatusCodes.Status500InternalServerError, $"Ops! Houve um erro: { ex.Message }.")); } }