public object Execute() { AllGroups.Remove(DeletedGroup); return(AllGroups); }
public object Undo() { AllGroups.Remove(CreatedGroup); return(AllGroups); }
//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); }