public IActionResult Delete(Guid id) { try { var turma = _turmaRepository.BuscarPorId(id); if (turma == null) { return(NotFound()); } _turmaRepository.Remover(id); return(Ok(id)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }