Exemplo n.º 1
0
 public ActionResult <ProcedimentoAvulso> EditarItem([FromHeader] string ibge, [FromBody] ProcedimentoAvulsoItem model, [FromRoute] int id)
 {
     try
     {
         ibge = _config.GetConnectionString(Connection.GetConnection(ibge));
         model.csi_controle = id;
         _repository.EditarItem(ibge, model);
         return(Ok());
     }
     catch (Exception ex)
     {
         var response = TrataErro.GetResponse(ex.Message, true);
         return(StatusCode((int)HttpStatusCode.InternalServerError, response));
     }
 }