public async Task <AssessmentProcessResponse> CompareAndProcessAssessmentsAsync(IList <TqPathwayAssessment> pathwayAssessmentsToProcess, IList <TqSpecialismAssessment> specialismAssessmentsToProcess) { var response = new AssessmentProcessResponse(); // Prepare Pathway Assessments var newOrAmendedPathwayAssessmentRecords = await PrepareNewAndAmendedPathwayAssessments(pathwayAssessmentsToProcess); // Prepare Specialism Assessments var newOrAmendedSpecialismAssessmentRecords = await PrepareNewAndAmendedSpecialismAssessments(specialismAssessmentsToProcess); // Process Assessments response.IsSuccess = await _assessmentRepository.BulkInsertOrUpdateAssessments(newOrAmendedPathwayAssessmentRecords, newOrAmendedSpecialismAssessmentRecords); return(response); }