public Allegiance GetAllegianceFromCode(string code) { // TODO: Consider hashtable Allegiance alleg = Allegiances.Where(a => a.T5Code == code).FirstOrDefault(); return(alleg ?? SecondSurvey.GetStockAllegianceFromCode(code)); }
public Allegiance GetAllegiance(string code) { // TODO: Consider hashtable Allegiance alleg = Allegiances.Where(a => a.Code == code).FirstOrDefault(); return(alleg != null ? alleg : Allegiance.GetStockAllegiance(code)); }