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); }
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 AddGroupPerson(GroupPersonData g) { return(Insert(g)); }
public int RemoveGroupPerson(GroupPersonData g) { return(Delete(g)); }