Exemplo n.º 1
0
        public async Task Handle(Commands.Destroy command, IMessageHandlerContext ctx)
        {
            var account = await _uow.For <Account>().Get(command.AccountId);

            account.Destroy();
        }
Exemplo n.º 2
0
        public void Handle(Commands.Destroy command)
        {
            var account = _uow.R <Account>().Get(command.AccountId);

            account.Destroy();
        }