public async Task SendLemlist() { var results = (await LemlistIntegrationService.AddLeadsInCampaign(SendForContacts.ToList())).ToList(); int successResults = results.Where(p => p.Result == true).Count(); int failResults = results.Where(p => p.Result == false).Count(); AddLemlistStatistic = new AddLemlistStatistic { successCount = successResults, failedCount = failResults }; await AddLog(count : successResults); await Close(); await OpenModalForAddLemlistStatistic(); }
/// controls END #endregion #region BASE_METHODS protected override async Task OnInitializedAsync() { NewCompany = new CompanyRegistrationDTO(); AddLemlistStatistic = new AddLemlistStatistic(); checkedContacts = new List <int>(); await TempService.UpdateCompanies(); await RenderUpdate(); authState = await AuthenticationStateProvider.GetAuthenticationStateAsync(); user = authState.User; if (user.Identity.IsAuthenticated) { TempService.CurrentUser = await UserRegistrationService.GetCurrent(user.Identity.Name); } await StartCountdown(); }