public async Task ProcessStage1(Guid importId, ExecutionContext executionContext) { await _validatorService.Validate(importId, executionContext) .OnSuccessDo(async result => { await _dataImportService.Update(importId, rowsPerBatch: result.RowsPerBatch, totalRows: result.ImportableRowCount, numBatches: result.NumBatches, geographicLevels: result.GeographicLevels); }) .OnFailureDo(async errors => { await _dataImportService.FailImport(importId, errors); _logger.LogError($"Import {importId} FAILED ...check log"); }); }