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