private async void FindAllCustomersAsync() { IsProgressBarVisible = true; Message = "Loading Customer names..."; var customers = await Task.Run( () => _subscribeService.FindAllCustomers() ); customers.Insert(0, new Customer() { Id = Guid.Empty, Contact = new Contact() { FirstName = "Existing Customers" } }); Customers = customers; Message = "Done Loading Customer names..."; IsProgressBarVisible = false; }
public IList <Customer> FindAllCustomers() { return(_subscribeService.FindAllCustomers()); }