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

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

            account.Destroy();
        }