private async Task GetSuppliers() { try { Suppliers = await supplierAPIHelper.GetSuppliers(ParentLayout.LoggedInUser.Token); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error"); } }
private async Task GetSuppliers() { try { IsProgressing = true; Suppliers = await apiHelper.GetSuppliers(ParentLayout.LoggedInUser.Token); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error"); } finally { IsProgressing = false; } }