public List <Folder> GetAllFoldersByAccount(int id)
 {
     using (IMailAccountDao dao = this.getDaoContext().DaoImpl.MailAccountDao)
     {
         return(dao.GetAllFoldersByAccount(id));
     }
 }
 public IList <MailUser> GetUserByServerAndUsername(decimal idServer, string userName)
 {
     using (IMailAccountDao dao = getDaoContext().DaoImpl.MailAccountDao)
     {
         return(dao.GetUserByServerAndUsername(idServer, userName));
     }
 }
 public IList <MailUser> GetUsersByMails(IList <String> mails)
 {
     using (IMailAccountDao dao = this.getDaoContext().DaoImpl.MailAccountDao)
     {
         return(dao.GetUsersByMails(mails));
     }
 }
 public void Insert(MailUser user)
 {
     using (IMailAccountDao dao = getDaoContext().DaoImpl.MailAccountDao)
     {
         dao.Insert(user);
     }
 }
 public void Update(MailUser user)
 {
     using (IMailAccountDao dao = getDaoContext().DaoImpl.MailAccountDao)
     {
         dao.Update(user);
     }
 }
 public ActiveUp.Net.Mail.DeltaExt.MailUser GetById(decimal id)
 {
     using (IMailAccountDao dao = getDaoContext().DaoImpl.MailAccountDao)
     {
         return(dao.GetById(id));
     }
 }
 public MailUser GetManagedUserByAccount(string account)
 {
     using (IMailAccountDao dao = getDaoContext().DaoImpl.MailAccountDao)
     {
         return(dao.GetManagedUserByAccount(account));
     }
 }
 public IList <MailUser> GetAllManaged()
 {
     using (IMailAccountDao dao = getDaoContext().DaoImpl.MailAccountDao)
     {
         return((IList <ActiveUp.Net.Mail.DeltaExt.MailUser>)dao.GetAllManaged());
     }
 }
 public MailUser GetUserByUserId(decimal userId)
 {
     using (IMailAccountDao dao = getDaoContext().DaoImpl.MailAccountDao)
     {
         return(dao.GetById(userId));
     }
 }
 public IList <MailUser> GetAllManagedUsers()
 {
     using (IMailAccountDao dao = getDaoContext().DaoImpl.MailAccountDao)
     {
         return((IList <MailUser>)dao.GetAllManaged());
     }
 }