public static Group findPermInt(int Perm) { return GroupList.FirstOrDefault(grp => (int)grp.Permission == Perm); }