CQRS_ES.Models.AccountApplicationService.Handle C# (CSharp) Method

Handle() public method

public Handle ( RegisterAccountCommand registerAccountCommand ) : void
registerAccountCommand RegisterAccountCommand
return void
        public void Handle(RegisterAccountCommand registerAccountCommand)
        {
            var account = new Account(registerAccountCommand.AccountId, registerAccountCommand.Name,
                                      registerAccountCommand.Balance);
            _repository.Save(account);
        }
AccountApplicationService