public void Handle(Commands.Destroy command)
        {
            var currency = _uow.R <Currency>().Get(command.CurrencyId);

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

            currency.Destroy();
        }