示例#1
0
 public ActionResult <Fornecedor> Atualizar([FromHeader] string ibge, [FromBody] Fabricante model)
 {
     try
     {
         ibge = _config.GetConnectionString(Connection.GetConnection(ibge));
         _fabricanteRepository.Atualizar(ibge, model);
         return(Ok());
     }
     catch (Exception ex)
     {
         var response = TrataErro.GetResponse(ex.Message, true);
         return(StatusCode((int)HttpStatusCode.InternalServerError, response));
     }
 }