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