private StagingEbayItem CreateStagingEbayItem(IStagingEbayLoadService stagingEbayLoadService, SearchItem ebaySearchItem, int batchId, DateTime ebayCheckTime, string userId)
        {
            StagingEbayItem stagingEbayItem = FindingServiceSearchItemMapper.SearchItemToStgEbayItem(ebaySearchItem);

            stagingEbayItem.EbayBatchImportId = batchId;
            //Set the created-on for staging ebay item record
            stagingEbayItem.CreatedOn = ebayCheckTime;
            stagingEbayItem.CreatedBy = userId;
            //Need to set the datetime to null because the default values are the start of time
            stagingEbayItem.DeletedOn  = null;
            stagingEbayItem.ModifiedOn = null;

            //Call service create ebay item method
            stagingEbayLoadService.CreateStagingEbayItem(stagingEbayItem, true);
            return(stagingEbayItem);
        }
Ejemplo n.º 2
0
 public AdminController(IStagingEbayBatchImportsService iSTGEbayBatchImportsService, IStagingEbayLoadService iStagingEbayLoadService)
 {
     STGEbayBatchImportsService = iSTGEbayBatchImportsService;
     StagingEbayLoadService     = iStagingEbayLoadService;
 }
        private StagingEbayItem CreateStagingEbayItem(IStagingEbayLoadService stagingEbayLoadService, SearchItem ebaySearchItem, int batchId, DateTime ebayCheckTime, string userId)
        {
            StagingEbayItem stagingEbayItem = FindingServiceSearchItemMapper.SearchItemToStgEbayItem(ebaySearchItem);
            stagingEbayItem.EbayBatchImportId = batchId;
            //Set the created-on for staging ebay item record
            stagingEbayItem.CreatedOn = ebayCheckTime;
            stagingEbayItem.CreatedBy = userId;
            //Need to set the datetime to null because the default values are the start of time
            stagingEbayItem.DeletedOn = null;
            stagingEbayItem.ModifiedOn = null;

            //Call service create ebay item method
            stagingEbayLoadService.CreateStagingEbayItem(stagingEbayItem, true);
            return stagingEbayItem;
        }
Ejemplo n.º 4
0
 public AdminController(IStagingEbayBatchImportsService iSTGEbayBatchImportsService, IStagingEbayLoadService iStagingEbayLoadService)
 {
     STGEbayBatchImportsService = iSTGEbayBatchImportsService;
     StagingEbayLoadService = iStagingEbayLoadService;
 }