Beispiel #1
0
 private void RefreshCustomerHearingAidOrderCollection(bool doAsync = false)
 {
     try
     {
         if (doAsync)
         {
             Task.Factory.StartNew(() =>
             {
                 var items = CustomerAction.GetCustomerHearingAidOrderList(this.DBConnectionString,
                                                                           this.Entity);
                 if (items != null && items.InternalList.Any())
                 {
                     this.Entity.CustomerHearingAidOrderCollection = items.InternalList;
                 }
             });
         }
         else
         {
             var items = CustomerAction.GetCustomerHearingAidOrderList(this.DBConnectionString, this.Entity);
             if (items != null && items.InternalList.Any())
             {
                 this.Entity.CustomerHearingAidOrderCollection = items.InternalList;
             }
         }
     }
     catch (Exception exception)
     {
         NLogLogger.LogError(exception, TitleResources.Error, ExceptionResources.ExceptionOccured,
                             ExceptionResources.ExceptionOccuredLogDetail);
     }
 }
Beispiel #2
0
 private void RefreshCustomerHearingAidOrderCollection()
 {
     Task.Factory.StartNew(() =>
     {
         var items = CustomerAction.GetCustomerHearingAidOrderList(this.DBConnectionString, this.Entity);
         if (items != null && items.InternalList.Any())
         {
             this.Entity.CustomerHearingAidOrderCollection = items.InternalList;
         }
     });
 }