Esempio n. 1
0
 private int InsertFriend(string email1, string email2)
 {
     lock (synlock1)
     {
         var db = new FriendDAOSQL();
         return(db.Insert(email1, email2));
     }
 }
 private int Delete(string email1, string email2)
 {
     lock (synlock)
     {
         var db = new FriendDAOSQL();
         return(db.Delete(email1, email2));
     }
 }