private async Task LoadItems(string searchCriteria) { IsBusy = true; IsNotFound = false; type = PrintType.all; try { Enum.TryParse(_remoteConfig.GetRemoteDataString(CONFIG_PRINT_TYPE), out type); var BookCollection = await _restClient.GetVolumes(searchCriteria, type); Items.Clear(); foreach (var item in BookCollection.items) { Items.Add(item); } if (Items.Count == 0) { IsNotFound = true; } } catch (Exception) { Items.Clear(); IsNotFound = true; } finally { IsBusy = false; } }