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