public object Execute()
        {
            AllGroups.Remove(DeletedGroup);

            return(AllGroups);
        }
예제 #2
0
        public object Undo()
        {
            AllGroups.Remove(CreatedGroup);

            return(AllGroups);
        }
예제 #3
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);
        }