ApplicationService.AccountApplicationService.Execute C# (CSharp) Метод

Execute() публичный Метод

public Execute ( OpenAccount command ) : void
command Domain.Client.Accounts.Commands.OpenAccount
Результат void
        public void Execute(OpenAccount command)
        {
            try
            {
                var account = Account.Open(command.ClientId, accountNumberService.GetNextAccountNumber());
                accountRepository.Save(account);
                unitOfWork.Commit();
            }
            catch (Exception ex)
            {
                HandleException(ex);
            }
        }

Same methods

AccountApplicationService::Execute ( CancelAccount command ) : void
AccountApplicationService::Execute ( RegisterMissedPayment command ) : void
AccountApplicationService::Execute ( RegisterSuccessfullPayment command ) : void