public IActionResult Post([FromBody] Turma turma) { try { _turmaRepository.Adicionar(turma); return(Ok(turma)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }