Beispiel #1
0
 private static Group GetGroup( int id )
 {
     Group group = new Group();
     foreach (Group g in Groups)
     {
         if (g.Id==id)
         {
             group = g;
             break;
         }
     }
     return group;
 }
Beispiel #2
0
 private static Group GetGroup( int id )
 {
     Group group = new Group();
     foreach (Group g in Groups.Where(g => g.Id==id))
     {
         @group = g;
         break;
     }
     return group;
 }