Beispiel #1
0
 private static void DatabaseInsert(SmsGroupObject g)
 {
     foreach (var p in g.Persons)
     {
         var data = new GroupPersonData()
         {
             GroupName = g.Name, ABPersonId = p.Id
         };
         connection.AddGroupPerson(data);
     }
 }
 public int RemoveGroupPerson(GroupPersonData g)
 {
     return Delete(g);
 }
 public int AddGroupPerson(GroupPersonData g)
 {
     return Insert(g);
 }
Beispiel #4
0
 private static void DatabaseInsert(SmsGroupObject g)
 {
     foreach(var p in g.Persons)
     {
         var data = new GroupPersonData(){ GroupName = g.Name, ABPersonId = p.Id };
         connection.AddGroupPerson(data);
     }
 }
Beispiel #5
0
 public int AddGroupPerson(GroupPersonData g)
 {
     return(Insert(g));
 }
Beispiel #6
0
 public int RemoveGroupPerson(GroupPersonData g)
 {
     return(Delete(g));
 }