Esempio n. 1
0
        /// <summary>
        /// GetListForLogin
        /// Calls [usp_selectAll_MailGroup_for_Login]
        /// </summary>
        public static List <MailGroup> GetListForLogin(System.Int32?loginNo)
        {
            List <MailGroupDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.MailGroup.GetListForLogin(loginNo);

            if (lstDetails == null)
            {
                return(new List <MailGroup>());
            }
            else
            {
                List <MailGroup> lst = new List <MailGroup>();
                foreach (MailGroupDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.MailGroup obj = new Rebound.GlobalTrader.BLL.MailGroup();
                    obj.MailGroupId     = objDetails.MailGroupId;
                    obj.Name            = objDetails.Name;
                    obj.UpdatedBy       = objDetails.UpdatedBy;
                    obj.DLUP            = objDetails.DLUP;
                    obj.ClientNo        = objDetails.ClientNo;
                    obj.LoginNo         = objDetails.LoginNo;
                    obj.NumberOfMembers = objDetails.NumberOfMembers;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Esempio n. 2
0
        private static MailGroup PopulateFromDBDetailsObject(MailGroupDetails obj)
        {
            MailGroup objNew = new MailGroup();

            objNew.MailGroupId     = obj.MailGroupId;
            objNew.Name            = obj.Name;
            objNew.UpdatedBy       = obj.UpdatedBy;
            objNew.DLUP            = obj.DLUP;
            objNew.ClientNo        = obj.ClientNo;
            objNew.LoginNo         = obj.LoginNo;
            objNew.NumberOfMembers = obj.NumberOfMembers;
            return(objNew);
        }
Esempio n. 3
0
 /// <summary>
 /// Get
 /// Calls [usp_select_MailGroup]
 /// </summary>
 public static MailGroup Get(System.Int32?mailGroupNo)
 {
     Rebound.GlobalTrader.DAL.MailGroupDetails objDetails = Rebound.GlobalTrader.DAL.SiteProvider.MailGroup.Get(mailGroupNo);
     if (objDetails == null)
     {
         return(null);
     }
     else
     {
         MailGroup obj = new MailGroup();
         obj.MailGroupId     = objDetails.MailGroupId;
         obj.Name            = objDetails.Name;
         obj.UpdatedBy       = objDetails.UpdatedBy;
         obj.DLUP            = objDetails.DLUP;
         obj.ClientNo        = objDetails.ClientNo;
         obj.LoginNo         = objDetails.LoginNo;
         obj.NumberOfMembers = objDetails.NumberOfMembers;
         objDetails          = null;
         return(obj);
     }
 }