public ActionResult <ProfessorTurma> DeleteProfessorTurma(Guid id) { try { var professorTurma = _profeTurmaRepository.BuscarPorId(id); if (professorTurma == null) { return(NotFound()); } _profeTurmaRepository.Remover(id); return(Ok(professorTurma)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public void Delete(Guid id) { _professorTurmaRepository.Remover(id); }