Exemplo n.º 1
0
        public async Task Handle(Commands.Create command, IHandleContext ctx)
        {
            var account = await _uow.For <AccountType>().New(command.AccountTypeId);

            account.Create(command.Name, command.DeferralMethod, command.ParentId);
        }
Exemplo n.º 2
0
        public void Handle(Commands.Create command)
        {
            var account = _uow.R <AccountType>().New(command.AccountTypeId);

            account.Create(command.Name, command.DeferralMethod, command.ParentId);
        }