private void AtualizarDataGrid() { EstoqueRepo repo = new EstoqueRepo(); List.ItemsSource = repo.Pesquisar(txtPeca.Text); List.Columns[0].Visibility = Visibility.Hidden; List.Columns[0].IsReadOnly = true; List.Columns[1].IsReadOnly = true; List.Columns[2].IsReadOnly = true; List.Columns[3].IsReadOnly = true; }
// GET: api/Estoque public IHttpActionResult Get() { try { EstoqueRepo estoqueRepo = new EstoqueRepo(); var estoque = estoqueRepo.Pesquisar(); return(Ok(estoque)); } catch (Exception ex) { return(InternalServerError(ex)); } }