private async Task ExecuteSearchPicturesCommand(string searchTerm) { Pictures.Clear(); var pictures = await PicturesDataStore.GetItemsAsync(searchTerm).ConfigureAwait(false); Pictures = new ObservableCollection <Picture>(pictures); }
private async Task ExectueLoadPicturesCommand() { Pictures.Clear(); var pictures = await PicturesDataStore.GetItemsAsync().ConfigureAwait(false); Pictures = new ObservableCollection <Picture>(pictures); }
private async Task ExecuteDeletePictureCommand(int pictureId) { await PicturesDataStore.DeleteItemAsync(pictureId).ConfigureAwait(false); }