Example #1
0
        public async Task Handle(Commands.ChangeName command, IHandleContext ctx)
        {
            var account = await _uow.For <AccountType>().Get(command.AccountTypeId);

            account.ChangeName(command.Name);
        }
Example #2
0
        public void Handle(Commands.ChangeName command)
        {
            var account = _uow.R <AccountType>().Get(command.AccountTypeId);

            account.ChangeName(command.Name);
        }