Пример #1
0
        public void CreateGroup(string name)
        {
            Group group = new Group {
                Name = name
            };

            db.Group.InsertOnSubmit(group);
            db.SubmitChanges();
            AllGroupItems.Add(group);
        }
Пример #2
0
 public void DeleteGroup(Group group)
 {
     AllGroupItems.Remove(group);
     db.Group.DeleteOnSubmit(group);
     db.SubmitChanges();
 }