Пример #1
0
        private async void TryFindByDocument()
        {
            using (BusyScope.CreateWork())
            {
                try
                {
                    var result = await Task.Run(() => _accountIdentService.GetAccountByDocument(EPlayerType.Krm, SelectedDocumentType, Series, Number));

                    if (result == null)
                    {
                        _userMessageService?.ShowError("Акаунт не найден");
                    }
                    else
                    {
                        Account = result;
                    }
                }
                catch (Exception ex)
                {
                    _userMessageService?.ShowError(ex.GetAllErrors());
                }
            }
        }