private List <Account> ListRequestOfUser(string email) { lock (synlock1) { var db = new FriendRequestNotExceptDAOSQL(); return(db.GetRequest(email)); } }
private List <Account> ListAccountSendFriendRequest(string email) { lock (this) { var db = new FriendRequestNotExceptDAOSQL(); return(db.GetRequest(email)); } }
private List <Account> ListUserRequestAddFriendOfReceiveUser(string email) { lock (synlock2) { var db = new FriendRequestNotExceptDAOSQL(); return(db.GetRequest(email)); } }