コード例 #1
0
 public List<CiTrackingUploadConfirmationModel> Upload_CiTracking(CiTrackingUploadModel param)
 {
     List<CiTrackingUploadConfirmationModel> response = null;
     try
     {
         if(param!=null && param.Items!=null &&param.Items.Count>0)
         {
             using (var repository=new TrakingRepository())
             {
                 response = repository.Upsert(param.Items);
             }
         }
     }
     catch (Exception ex)
     {
     }
     return response;
 }
コード例 #2
0
 public ObservableCollection<TrackingModel> Download_Tracking(long LastModifiedDate, long ServerLastModifiedDate)
 {
     ObservableCollection<TrackingModel> result = new ObservableCollection<TrackingModel>();
     try
     {
         using (var repository = new TrakingRepository())
         {
             result = repository.GetTraking(LastModifiedDate, ServerLastModifiedDate);
         }
     }
     catch (Exception)
     {
         ;
     }
     return result;
 }