private async void DeleteImageButton_Clicked(object sender, EventArgs e) { if (await DisplayAlert("Warning!", "Are you sure?", "Yes", "No")) { Loading(true); if (await BlobStorageService.DeleteBlob(picture.FileName)) { await DisplayAlert("Success!", "Image deleted successfully", "OK"); await Navigation.PopAsync(); } else { await DisplayAlert("Error!", "There was an error trying to remove the image", "OK"); } Loading(false); } }
private async void BtnDelete_Clicked(object sender, EventArgs e) { bool result = await BlobStorageService.DeleteBlob(fileName); }