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

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

public Execute ( CancelAccount command ) : void
command Domain.Client.Accounts.Commands.CancelAccount
Результат void
        public void Execute(CancelAccount command)
        {
            try
            {
                Account account = accountRepository.Get(command.AccountNumber);
                account.Cancel();
                accountRepository.Save(account);
                unitOfWork.Commit();
            }
            catch (Exception ex)
            {
                HandleException(ex);
            }
        }

Same methods

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