Пример #1
0
        public void removeMember(Airline airline)
        {
            AllianceMember member = this.Members.FirstOrDefault(m => m.Airline == airline);

            this.Members.Remove(member);
            airline.removeAlliance(this);
        }
Пример #2
0
 public void removeMember(Airline airline)
 {
     AllianceMember member = this.Members.FirstOrDefault(m => m.Airline == airline);
     this.Members.Remove(member);
     airline.removeAlliance(this);
 }