async Task RefreshProfileData() { if (Connectivity.NetworkAccess == NetworkAccess.Internet) { var profile = await _mvpApiService.GetProfileAsync().ConfigureAwait(false); var image = await _mvpApiService.GetProfileImageAsync().ConfigureAwait(false); Name = profile.FullName; ProfileImage = image; } }
private async Task LoadProfileAsync() { try { var result = await mvpApiService.GetProfileAsync(); ProfileContentControl.DataContext = result; ProfileContentControl.Visibility = Visibility.Visible; } catch (Exception exception) { Debug.WriteLine(exception); } }