public void Handle(Commands.ChangeParent command) { var account = _uow.R <Account>().Get(command.AccountId); var parent = _uow.R <Account>().Get(command.ParentId); account.ChangeParent(parent); }
public async Task Handle(Commands.ChangeParent command, IMessageHandlerContext ctx) { var account = await _uow.For <Account>().Get(command.AccountId); var parent = await _uow.For <Account>().Get(command.ParentId); account.ChangeParent(parent); }