Exemple #1
0
        //internal Groups_Class DeleteGroup(int id)
        //{
        //    Group = AllGroups.SingleOrDefault(x => x.Id == id);

        //}
        internal void DeleteGroup(int id)
        {
            Group = AllGroups.SingleOrDefault(x => x.Id == id);
            AllGroups.Remove(Group);
        }
Exemple #2
0
 public Groups_Class GetGroup(int id)
 {
     Group = AllGroups.SingleOrDefault(x => x.Id == id);
     return(Group);
 }
Exemple #3
0
 public void EditGroup(Groups_Class EGroup, int id)
 {
     Group           = AllGroups.SingleOrDefault(x => x.Id == id);
     Group.GroupName = EGroup.GroupName;
 }
Exemple #4
0
 public void AddGroup(Groups_Class newGroup)
 {
     AllGroups.Add(newGroup);
 }