Beispiel #1
0
        /// <summary>
        /// GetListByGroup
        /// Calls [[usp_selectAll_MailGroupMember_by_GroupName]]
        /// </summary>
        public static List <MailGroupMember> GetEmailListByGroup(System.String mailGroupName)
        {
            List <MailGroupMemberDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.MailGroupMember.GetEmailListByGroup(mailGroupName);

            if (lstDetails == null)
            {
                return(new List <MailGroupMember>());
            }
            else
            {
                List <MailGroupMember> lst = new List <MailGroupMember>();
                foreach (MailGroupMemberDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.MailGroupMember obj = new Rebound.GlobalTrader.BLL.MailGroupMember();
                    obj.MailGroupMemberId = objDetails.MailGroupMemberId;
                    obj.MailGroupNo       = objDetails.MailGroupNo;
                    obj.LoginNo           = objDetails.LoginNo;
                    obj.EmployeeName      = objDetails.EmployeeName;
                    obj.EmailID           = objDetails.EmailID;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Beispiel #2
0
        private static MailGroupMember PopulateFromDBDetailsObject(MailGroupMemberDetails obj)
        {
            MailGroupMember objNew = new MailGroupMember();

            objNew.MailGroupMemberId = obj.MailGroupMemberId;
            objNew.MailGroupNo       = obj.MailGroupNo;
            objNew.LoginNo           = obj.LoginNo;
            objNew.EmployeeName      = obj.EmployeeName;
            return(objNew);
        }
Beispiel #3
0
        /// <summary>
        /// GetList
        /// Calls [usp_selectAll_MailGroupMember]
        /// </summary>
        public static List <MailGroupMember> GetList(System.Int32?mailGroupMemberId)
        {
            List <MailGroupMemberDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.MailGroupMember.GetList(mailGroupMemberId);

            if (lstDetails == null)
            {
                return(new List <MailGroupMember>());
            }
            else
            {
                List <MailGroupMember> lst = new List <MailGroupMember>();
                foreach (MailGroupMemberDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.MailGroupMember obj = new Rebound.GlobalTrader.BLL.MailGroupMember();
                    obj.MailGroupMemberId = objDetails.MailGroupMemberId;
                    obj.MailGroupNo       = objDetails.MailGroupNo;
                    obj.LoginNo           = objDetails.LoginNo;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }