static Providers() { for (int count = 0; count < 5000; count++) { ProvidersList.Add(10000000 + (count * 500)); } }
public async Task RefresProvidersAsync() { var result = await new ProviderService().GetProvidersAsync(); var data = result.ToList(); ProvidersList.Clear(); foreach (var item in data) { ProvidersList.Add(item); } }
public async Task RefresProvidersAsync() { var result = await new ProviderService().GetProvidersAsync(); var data = result.ToList(); data.Insert(0, new Provider() { ProviderId = -1, Name = "Add New Provider" }); ProvidersList.Clear(); foreach (var item in data) { ProvidersList.Add(item); } }