public ActionResult AtualizarCadIndividual([FromHeader] string ibge, [FromBody] Cidadao model, [FromRoute] int id) { try { ibge = _config.GetConnectionString(Connection.GetConnection(ibge)); model.csi_codpac = id; _cidadaoRepository.UpdateCadIndividual(ibge, model); return(Ok()); } catch (Exception ex) { var response = TrataErro.GetResponse(ex.Message, true); return(StatusCode((int)HttpStatusCode.InternalServerError, response)); } }