public IActionResult Delete(int id)
        {
            try
            {
                _objetivoAlunoRepository.Excluir(id);

                return(Ok(id));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }
Exemple #2
0
 public void Delete(int id)
 {
     _ObjetivoAlunoRepository.Excluir(id);
 }