private async void GetMovimEstoque() { try { IsBusy = true; EstoqueLogic el = new EstoqueLogic(); var json = await el.GetMovimeEstoque(""); lstMovEstoque = JsonConvert.DeserializeObject <ObservableCollection <MovimEstoqueModel> >(json); IsBusy = false; } catch { } }
public async Task BuscarProduto(string texto) { try { IsBusy = true; try { EstoqueLogic el = new EstoqueLogic(); string estoque = await el.GetMovimeEstoque(texto); var retorno = JsonConvert.DeserializeObject <ObservableCollection <MovimEstoqueModel> >(estoque); lstMovEstoque = retorno; } catch { } } finally { IsBusy = false; } }