private async Task RequestReferralEmailsAsync(int opportunityId, IList <int> itemIds, string username) { await _messageQueueService.PushEmployerReferralEmailMessageAsync(new SendEmployerReferralEmail { OpportunityId = opportunityId, ItemIds = itemIds, BackgroundProcessHistoryId = await CreateAndGetBackgroundProcessIdAsync(BackgroundProcessType.EmployerReferralEmail, username) }); await _messageQueueService.PushProviderReferralEmailMessageAsync(new SendProviderReferralEmail { OpportunityId = opportunityId, ItemIds = itemIds, BackgroundProcessHistoryId = await CreateAndGetBackgroundProcessIdAsync(BackgroundProcessType.ProviderReferralEmail, username) }); }