private void RefreshCustomerEarMoldOrderCollection(bool doAsync = false) { try { if (doAsync) { Task.Factory.StartNew(() => { var items = CustomerAction.GetCustomerEarMoldOrderList(this.DBConnectionString, this.Entity); if (items != null && items.InternalList.Any()) { this.Entity.CustomerEarMoldOrderCollection = items.InternalList; } }); } else { var items = CustomerAction.GetCustomerEarMoldOrderList(this.DBConnectionString, this.Entity); if (items != null && items.InternalList.Any()) { this.Entity.CustomerEarMoldOrderCollection = items.InternalList; } } } catch (Exception exception) { NLogLogger.LogError(exception, TitleResources.Error, ExceptionResources.ExceptionOccured, ExceptionResources.ExceptionOccuredLogDetail); } }
private void RefreshCustomerEarMoldOrderCollection() { Task.Factory.StartNew(() => { var items = CustomerAction.GetCustomerEarMoldOrderList(this.DBConnectionString, this.Entity); if (items != null && items.InternalList.Any()) { this.Entity.CustomerEarMoldOrderCollection = items.InternalList; } }); }