예제 #1
0
 public ActionResult <Cidadao> Editar([FromHeader] string ibge, [FromBody] Cidadao model, [FromRoute] int id)
 {
     try
     {
         ibge             = _config.GetConnectionString(Connection.GetConnection(ibge));
         model.csi_codpac = id;
         _cidadaoRepository.Update(model, ibge);
         return(Ok());
     }
     catch (Exception ex)
     {
         var response = TrataErro.GetResponse(ex.Message, true);
         return(StatusCode((int)HttpStatusCode.InternalServerError, response));
     }
 }