public async Task <IActionResult> Get(int Id) { try { var turma = await _repo.GetTurmaById(Id); if (turma == null) { return(NotFound(MSG.NaoExisteTurma)); } return(Ok(turma)); } catch (Exception) { return(this.StatusCode(StatusCodes.Status501NotImplemented, MSG.BancoDadosFalhou)); } }