public UniversalService GetByUniversalServiceId(string universalServiceId) { UniversalService result = null; foreach (UniversalService item in this) { if (item.UniversalServiceId.ToUpper() == universalServiceId.ToUpper()) { result = item; break; } } if (result == null) { result = new UniversalServiceDefinitions.UniversalServiceNone(); } return(result); }
public UniversalService GetByApplicationName(UniversalServiceApplicationNameEnum applicationName) { UniversalService result = null; foreach (UniversalService item in this) { if (item.ApplicationName == applicationName) { result = item; break; } } if (result == null) { result = new UniversalServiceDefinitions.UniversalServiceNone(); } return(result); }