Beispiel #1
0
 public ActionResult AtualizaFamiliaOutraArea([FromHeader] string ibge, [FromRoute] int?id_familia)
 {
     try
     {
         ibge = _config.GetConnectionString(Helpers.Connection.GetConnection(ibge));
         _repository.AtualizaFamiliaOutraArea(ibge, (int)id_familia);
         return(Ok());
     }
     catch (Exception ex)
     {
         var response = TrataErro.GetResponse(ex.Message, true);
         return(StatusCode((int)HttpStatusCode.InternalServerError, response));
     }
 }