public IEnumerable <EmailMessage> GetEmails()
 {
     using (DBAcessHandler DBAcessContext = new DBAcessHandler())
     {
         return(DBAcessContext.EmailMessages.ToList());
     }
 }
 public EmailMessage AddEmails(EmailMessage message)
 {
     message.Date = DateTime.Now;
     using (DBAcessHandler DBAcessContext = new DBAcessHandler())
     {
         DBAcessContext.Add(message);
         DBAcessContext.SaveChanges();
         return(message);
     }
 }