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