Exemplo n.º 1
0
        public async Task ForgetUser(ForgetUserMessage message)
        {
            var user = await _authenticationContext.Users.FirstOrDefaultAsync(u => u.Id == message.Id);

            _authenticationContext.Remove(user);
            await _authenticationContext.SaveChangesAsync();
        }
Exemplo n.º 2
0
        public async Task ForgetUser(ForgetUserMessage message)
        {
            await _users.DeleteOneAsync(u => u.Id == message.Id);

            await _tweets.DeleteManyAsync(u => u.UserId == message.Id);

            await _follows.DeleteManyAsync(f => f.Follower == message.Id);

            await _follows.DeleteManyAsync(f => f.Following == message.Id);
        }
Exemplo n.º 3
0
        public async Task ForgetUser(ForgetUserMessage message)
        {
            await _users.DeleteOneAsync(u => u.Id == message.Id);

            await _tweets.DeleteManyAsync(u => u.UserId == message.Id);
        }
Exemplo n.º 4
0
        public async Task ForgetUser(ForgetUserMessage message)
        {
            await _followRepository.DeleteAllFollowers(message.Id);

            await _followRepository.DeleteAllFollowing(message.Id);
        }
Exemplo n.º 5
0
 public async Task ForgetUser(ForgetUserMessage message)
 {
     await _likeRepository.DeleteUserLike(message.Id);
 }