Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        /// 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();
        }