public List<UserRepresentation> GetBlockedUsers(string userId) { lock (NetDbLock) { List<string> userNames = new List<string>(); userNames = neo4JDB.GetBlockedUsers(userId); return GetUserRepresentations(userNames); } }
public bool BlockedByUser(string myId, string userToViewId) { return(neo4JDB.GetBlockedUsers(myId).Contains(userToViewId) || neo4JDB.GetBlockedUsers(userToViewId).Contains(myId)); }