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

            user.ChangeAvatar(command.ImageType, command.ImageData);
        }
示例#2
0
        public void Handle(Commands.ChangeAvatar command)
        {
            var user = _uow.R <User>().Get(command.UserId);

            user.ChangeAvatar(command.ImageType, command.ImageData);
        }