public List <PTServiceProvider> GetAllProviders(string unid) { ApplicationService.serviceprovider[] providers = appclient.Getserviceproviders(unid); List <PTServiceProvider> providerresult = new List <PTServiceProvider>(); foreach (ApplicationService.serviceprovider provider in providers) { PTServiceProvider tempprovider = new PTServiceProvider(); tempprovider.name = provider.providername; tempprovider.id = provider.providerid; tempprovider.unid = provider.unid; providerresult.Add(tempprovider); } return(providerresult); }
public List<PTServiceProvider> GetAllProviders(string unid) { ApplicationService.serviceprovider[] providers = appclient.Getserviceproviders(unid); List<PTServiceProvider> providerresult = new List<PTServiceProvider>(); foreach (ApplicationService.serviceprovider provider in providers) { PTServiceProvider tempprovider = new PTServiceProvider(); tempprovider.name = provider.providername; tempprovider.id = provider.providerid; tempprovider.unid = provider.unid; providerresult.Add(tempprovider); } return providerresult; }