public async Task UpdateProfilesExecutionStatusByCompanyIdAsync(int accountId, int companyId, Models.Types.ExecutionStatus executionStatus)
 {
     await _profileRepository.UpdateProfilesExecutionStatusByCompanyIdAsync(accountId, companyId, executionStatus);
 }
        public async Task UpdateProfilesExecutionStatusByCompanyIdAsync(int accountId, int companyId, Models.Types.ExecutionStatus executionStatus)
        {
            using (var db = new ScraperLinkedInDBEntities())
            {
                var profiles = db.Profiles.Where(x => x.AccountID == accountId && x.CompanyID == companyId);
                foreach (var profile in profiles)
                {
                    profile.ExecutionStatusID = (int)executionStatus;
                }

                await db.SaveChangesAsync();
            }
        }