public ActionResult <AlunoTurma> DeleteAlunoTurma(Guid id) { try { var alunoTurma = _alunoRepository.BuscarPorId(id); if (alunoTurma == null) { return(NotFound()); } _alunoRepository.Remover(id); return(Ok(alunoTurma)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public void Delete(Guid id) { _alunoTurmaRepository.Remover(id); }