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); }
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; }