public async Task ForgetUser(ForgetUserMessage message) { var user = await _authenticationContext.Users.FirstOrDefaultAsync(u => u.Id == message.Id); _authenticationContext.Remove(user); await _authenticationContext.SaveChangesAsync(); }
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); }
public async Task ForgetUser(ForgetUserMessage message) { await _users.DeleteOneAsync(u => u.Id == message.Id); await _tweets.DeleteManyAsync(u => u.UserId == message.Id); }
public async Task ForgetUser(ForgetUserMessage message) { await _followRepository.DeleteAllFollowers(message.Id); await _followRepository.DeleteAllFollowing(message.Id); }
public async Task ForgetUser(ForgetUserMessage message) { await _likeRepository.DeleteUserLike(message.Id); }