private void WriteEmailList(List <object[]> emails)
 {
     foreach (var email in emails)
     {
         var recordMail = new MailingAddresses {
             Mail          = email[0].ToString(),
             GeneralReport = _generalReport
         };
         recordMail.SaveAndFlush();
     }
 }
    protected bool Send_in_Emails()
    {
        if (IsValid)
        {
            var mails = mail_Text.Text.Split(',');
            for (int i = 0; i < mails.Length; i++)
            {
                mails[i] = mails[i].Trim(new[] { ' ', '\n', '\r' });
                var recordMail = new MailingAddresses {
                    Mail          = mails[i],
                    GeneralReport = _generalReport
                };
                recordMail.SaveAndFlush();
            }

            return(true);
        }
        return(false);
    }