public async Task DeleteVideoAsync() { try { var isOk = await _messageDialogService.ShowOkCancelDialogAsync($"Delete the video {_cloudBlockBlob.Name}?", "Question"); if (isOk) { _mainViewModel.StartLoading($"Deleting your video {BlobName}"); await _coffeeVideoStorage.DeleteVideoAsync(_cloudBlockBlob); _mainViewModel.RemoveCoffeeVideoViewModel(this); _mainViewModel.StopLoading(); _mainViewModel = null; } } catch (Exception ex) { await _messageDialogService.ShowInfoDialogAsync(ex.Message, "Error"); } finally { if (_mainViewModel != null) { _mainViewModel.StopLoading(); } } }