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