//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); }
public Groups_Class GetGroup(int id) { Group = AllGroups.SingleOrDefault(x => x.Id == id); return(Group); }
public void EditGroup(Groups_Class EGroup, int id) { Group = AllGroups.SingleOrDefault(x => x.Id == id); Group.GroupName = EGroup.GroupName; }
public void AddGroup(Groups_Class newGroup) { AllGroups.Add(newGroup); }