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