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