Exemplo n.º 1
0
        public void CreateGroup(string name)
        {
            Group group = new Group {
                Name = name
            };

            db.Group.InsertOnSubmit(group);
            db.SubmitChanges();
            AllGroupItems.Add(group);
        }
Exemplo n.º 2
0
 public void DeleteGroup(Group group)
 {
     AllGroupItems.Remove(group);
     db.Group.DeleteOnSubmit(group);
     db.SubmitChanges();
 }