Exemplo n.º 1
0
        /// <summary>
        /// GetListForGroup
        /// Calls [usp_selectAll_HelpHowTo_for_Group]
        /// </summary>
        public static List <HelpHowTo> GetListForGroup(System.Int32?helpGroupNo)
        {
            List <HelpHowToDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.HelpHowTo.GetListForGroup(helpGroupNo);

            if (lstDetails == null)
            {
                return(new List <HelpHowTo>());
            }
            else
            {
                List <HelpHowTo> lst = new List <HelpHowTo>();
                foreach (HelpHowToDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.HelpHowTo obj = new Rebound.GlobalTrader.BLL.HelpHowTo();
                    obj.HelpHowToId = objDetails.HelpHowToId;
                    obj.HelpGroupNo = objDetails.HelpGroupNo;
                    obj.Title       = objDetails.Title;
                    obj.ImageName   = objDetails.ImageName;
                    obj.SortOrder   = objDetails.SortOrder;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Exemplo n.º 2
0
        private static HelpHowTo PopulateFromDBDetailsObject(HelpHowToDetails obj)
        {
            HelpHowTo objNew = new HelpHowTo();

            objNew.HelpHowToId = obj.HelpHowToId;
            objNew.HelpGroupNo = obj.HelpGroupNo;
            objNew.Title       = obj.Title;
            objNew.ImageName   = obj.ImageName;
            objNew.SortOrder   = obj.SortOrder;
            return(objNew);
        }