public async Task <int> UpdateAttendance(int daysLookBack) { var checkIns = await _planningCenterClient.GetCheckedInPeople(daysLookBack : daysLookBack) .ConfigureAwait(continueOnCapturedContext: false); var locationUpdateCount = await UpdateLocations(checkIns : checkIns).ConfigureAwait(continueOnCapturedContext: false); var checkInsUpdates = await MapCheckInsUpdates(checkIns : checkIns) .ConfigureAwait(continueOnCapturedContext: false); var insertCount = await InsertNewPreCheckIns(preCheckIns : checkInsUpdates).ConfigureAwait(continueOnCapturedContext: false); var volunteerCheckCount = await _attendanceUpdateRepository.AutoCheckInVolunteers().ConfigureAwait(continueOnCapturedContext: false); return(locationUpdateCount + insertCount + volunteerCheckCount); }