public async Task <FileUploadJobMetaDataModel> PopulateFileUploadJobMetaDataModel( FileUploadJobMetaDataModel file, string reportName, string resultsReportName, CloudBlobContainer container, string periodPrefix, CancellationToken cancellationToken) { file.DisplayStatus = _jobStatusService.GetDisplayStatusFromJobStatus(file); if (file.JobStatus != JobStatuses.JobStatus_Completed) { return(file); } file.ReportName = $"{reportName} {file.FileName}"; var resultFileName = $"{periodPrefix}{file.PeriodNumber}/{file.JobId}/{resultsReportName} {Path.GetFileNameWithoutExtension(file.FileName)}.json"; var result = await _cloudStorageService.GetSubmissionSummary(container, resultFileName, cancellationToken); if (result == null) { return(file); } file.RecordCount = result.RecordCount; file.ErrorCount = result.ErrorCount; return(file); }