public static Group SelectByID(int id) { if (groupl == null) { GroupsDB db = new GroupsDB(); groupl = db.SelectAll(); } Group group = groupl.Find(c => c.ID == id); return(group); }