public List<CiTrackingUploadConfirmationModel> Upload_CiTracking(CiTrackingUploadModel param) { List<CiTrackingUploadConfirmationModel> response = null; try { if(param!=null && param.Items!=null &¶m.Items.Count>0) { using (var repository=new TrakingRepository()) { response = repository.Upsert(param.Items); } } } catch (Exception ex) { } return response; }
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; }