public void Handle(Commands.ChangeRoundingFactor command) { var currency = _uow.R <Currency>().Get(command.CurrencyId); currency.ChangeRoundingFactor(command.RoundingFactor); }
public async Task Handle(Commands.ChangeRoundingFactor command, IHandleContext ctx) { var currency = await _uow.For <Currency>().Get(command.CurrencyId); currency.ChangeRoundingFactor(command.RoundingFactor); }