public IActionResult deleteById(int id) { try { return(Ok(_agenciaRepository.deleteById(id))); } catch (Exception error) { return(BadRequest("Error: " + error)); } }
public IActionResult deleteById(int id) { try { return(Ok(_agenciaRepository.deleteById(id))); } catch (Exception error) { return(BadRequest("Error: " + error)); } }