コード例 #1
0
        /// <summary>
        /// GetListForLogin
        /// Calls [usp_selectAll_MailMessageFolder_for_Login]
        /// </summary>
        public static List <MailMessageFolder> GetListForLogin(System.Int32?loginNo)
        {
            List <MailMessageFolderDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.MailMessageFolder.GetListForLogin(loginNo);

            if (lstDetails == null)
            {
                return(new List <MailMessageFolder>());
            }
            else
            {
                List <MailMessageFolder> lst = new List <MailMessageFolder>();
                foreach (MailMessageFolderDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.MailMessageFolder obj = new Rebound.GlobalTrader.BLL.MailMessageFolder();
                    obj.MailMessageFolderId = objDetails.MailMessageFolderId;
                    obj.LoginNo             = objDetails.LoginNo;
                    obj.Name      = objDetails.Name;
                    obj.UpdatedBy = objDetails.UpdatedBy;
                    obj.DLUP      = objDetails.DLUP;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
コード例 #2
0
        private static MailMessageFolder PopulateFromDBDetailsObject(MailMessageFolderDetails obj)
        {
            MailMessageFolder objNew = new MailMessageFolder();

            objNew.MailMessageFolderId = obj.MailMessageFolderId;
            objNew.LoginNo             = obj.LoginNo;
            objNew.Name      = obj.Name;
            objNew.UpdatedBy = obj.UpdatedBy;
            objNew.DLUP      = obj.DLUP;
            return(objNew);
        }
コード例 #3
0
 /// <summary>
 /// Get
 /// Calls [usp_select_MailMessageFolder]
 /// </summary>
 public static MailMessageFolder Get(System.Int32?mailMessageFolderId)
 {
     Rebound.GlobalTrader.DAL.MailMessageFolderDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.MailMessageFolder.Get(mailMessageFolderId);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         MailMessageFolder obj = new MailMessageFolder();
         obj.MailMessageFolderId = objDetails.MailMessageFolderId;
         obj.LoginNo             = objDetails.LoginNo;
         obj.Name      = objDetails.Name;
         obj.UpdatedBy = objDetails.UpdatedBy;
         obj.DLUP      = objDetails.DLUP;
         objDetails    = null;
         return(obj);
     }
 }