Exemple #1
0
        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));
            }
        }
Exemple #2
0
 public void Delete(Guid id)
 {
     _alunoTurmaRepository.Remover(id);
 }