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

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

            currency.ChangeFraction(command.Fraction);
        }