Exemple #1
0
        protected override async void OnDeleteExecute()
        {
            var result = _messageDialogService.ShowOkCancelDialog(
                $"Do you really want to delete statement {Helper.GetIdentifier(Statement.Model)}", "Question");

            if (result == MessageDialogResult.OK)
            {
                _statementRepository.Remove(Statement.Model);
                await _statementRepository.SaveAsync();

                RaiseDetailDeletedEvent(Statement.Id);
            }
        }