private async void BtnFindEmployee_Click(object sender, RoutedEventArgs e) { RefreshLabels(); UserApiService service = new UserApiService(); users = await service.GetUserAsync(new UserVM { Email = txtEmail.Text, Name = txtName.Text }); dgShowEmployees.ItemsSource = users; }
async void FillDG() { users = await servise.GetUserAsync(null); dgShowEmployees.ItemsSource = users; }