Ejemplo n.º 1
0
 private int InsertUserToGroup(string email, string groupId)
 {
     lock (synlock1)
     {
         IGroupDAO db = new GroupsDAOSQL();
         return(db.InsertUserToGroup(email, groupId));
     }
 }
Ejemplo n.º 2
0
 private int Insert(Group group)
 {
     lock (synlock)
     {
         IGroupDAO db = new GroupsDAOSQL();
         return(db.Insert(group));
     }
 }
 private int DeleteUser(string email, string groupId)
 {
     lock (synlock1)
     {
         IGroupDAO db = new GroupsDAOSQL();
         return(db.DeleteUserInGroup(email, groupId));
     }
 }
Ejemplo n.º 4
0
 private List <Group> GetListGroup(string email)
 {
     lock (synlock2)
     {
         IGroupDAO db = new GroupsDAOSQL();
         return(db.GetListGroup(email));
     }
 }
 private bool IsUserCreateGroup(string email, string groupId)
 {
     lock (synlock)
     {
         IGroupDAO db = new GroupsDAOSQL();
         return(db.IsUserCreateGroup(email, groupId));
     }
 }