public async Task Handle(Commands.ChangeName command, IMessageHandlerContext ctx) { var user = await _uow.For <User>().Get(command.CurrentUserId); user.ChangeName(command.Name); }
public void Handle(Commands.ChangeName command) { var user = _uow.R <User>().Get(command.UserId); user.ChangeName(command.Name); }