Exemple #1
0
        public List <Emails> GetEmails(string emailaddres)
        {
            List <string> emaillist = new List <string>();

            emailaddres = emailaddres.Trim();
            emaillist   = emailaddres.Split(",").ToList();
            List <Emails> results = new List <Emails>();

            foreach (string email in emaillist)
            {
                try
                {
                    Emails emailadr = new Emails();
                    emailadr.email = email;
                    CheckService checkService = new CheckService(emailadr);
                    emailadr = checkService.getAllEmailDetails();
                    results.Add(emailadr);
                    GC.Collect();
                }
                catch (Exception ex)
                {
                }
            }
            //return RedirectToRoute("Home/Privacy",results);
            //TempDataExtensions.Put<List<Emails>>("emailresults", results);
            return(results);
        }