コード例 #1
0
        public void Handle(Commands.Destroy command)
        {
            var currency = _uow.R <Currency>().Get(command.CurrencyId);

            currency.Destroy();
        }
コード例 #2
0
        public async Task Handle(Commands.Destroy command, IHandleContext ctx)
        {
            var currency = await _uow.For <Currency>().Get(command.CurrencyId);

            currency.Destroy();
        }