Beispiel #1
0
        public OperationResult DeleteProvider(long accountId)
        {
            return(InvokeOperations.InvokeOperation(() =>
            {
                var operationResult = accService.DeleteAccount(accountId);
                if (!operationResult.IsSuccess)
                {
                    throw new OperationException(operationResult.Error, operationResult.Code);
                }

                signalServiceRepository.DeleteProvider(accountId);

                Logger.Trace("Provider removed (account {0})", accountId);
            }));
        }