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

            user.ChangeName(command.Name);
        }
Esempio n. 2
0
        public void Handle(Commands.ChangeName command)
        {
            var user = _uow.R <User>().Get(command.UserId);

            user.ChangeName(command.Name);
        }