private void GetRefreshCustomerRepairCollection() { Task.Factory.StartNew(() => { this.Entity = CustomerAction.GetCustomerRepairList(this.DBConnectionString, this.SelectedCustomer); }); }
private void GetRefreshCustomerRepairCollection() { Task.Factory.StartNew(() => { var items = CustomerAction.GetCustomerRepairList(this.DBConnectionString, this.Entity); if (items != null && items.InternalList.Any()) { this.Entity.CustomerRepairCollection = null; this.Entity.CustomerRepairCollection = items.InternalList; } }); }