private int DeleteRecord(FriendResquestNotExcept request) { lock (synlock) { var db = new FriendRequestNotExceptDAOSQL(); return(db.DeleteByMe(request)); } }
private int Delete(FriendResquestNotExcept request) { lock (this) { var db = new FriendRequestNotExceptDAOSQL(); return(db.DeleteByMe(request)); } }