Example #1
0
 public List <Folder> GetAllFoldersByAccount(int id)
 {
     using (MailAccountSQLDb dao = new MailAccountSQLDb())
     {
         return(dao.GetAllFoldersByAccount(id));
     }
 }
Example #2
0
 public IList <MailUser> GetUserByServerAndUsername(decimal idServer, string userName)
 {
     using (MailAccountSQLDb dao = new MailAccountSQLDb())
     {
         return(dao.GetUserByServerAndUsername(idServer, userName));
     }
 }
Example #3
0
 public IList <MailUser> GetUsersByMails(IList <String> mails)
 {
     using (MailAccountSQLDb dao = new MailAccountSQLDb())
     {
         return(dao.GetUsersByMails(mails));
     }
 }
Example #4
0
 public void Insert(MailUser user)
 {
     using (MailAccountSQLDb dao = new MailAccountSQLDb())
     {
         dao.Insert(user);
     }
 }
Example #5
0
 public void Update(MailUser user)
 {
     using (MailAccountSQLDb dao = new MailAccountSQLDb())
     {
         dao.Update(user);
     }
 }
Example #6
0
 public ActiveUp.Net.Mail.DeltaExt.MailUser GetById(decimal id)
 {
     using (MailAccountSQLDb dao = new MailAccountSQLDb())
     {
         return(dao.GetById(id));
     }
 }
Example #7
0
 public MailUser GetManagedUserByAccount(string account)
 {
     using (MailAccountSQLDb dao = new MailAccountSQLDb())
     {
         return(dao.GetManagedUserByAccount(account));
     }
 }
Example #8
0
 public IList <MailUser> GetAllManaged()
 {
     using (MailAccountSQLDb dao = new MailAccountSQLDb())
     {
         return((IList <ActiveUp.Net.Mail.DeltaExt.MailUser>)dao.GetAllManaged());
     }
 }
Example #9
0
 public MailUser GetUserByUserId(decimal userId)
 {
     using (MailAccountSQLDb dao = new MailAccountSQLDb())
     {
         return(dao.GetById(userId));
     }
 }
Example #10
0
 public IList <MailUser> GetAllManagedUsers()
 {
     using (MailAccountSQLDb dao = new MailAccountSQLDb())
     {
         return((IList <MailUser>)dao.GetAllManaged());
     }
 }