public IActionResult Delete(int id) { try { _pacoteRepository.DeletarPacote(id); return(Ok("Pacote deletado")); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public IActionResult Delete(int id) { try { _pacoteRepository.DeletarPacote(id); return(Ok("Pacote deletado")); } catch (Exception ex) { return(BadRequest(ex.Message)); } }