Esempio n. 1
0
        /// <summary>
        /// GetList
        /// Calls [usp_selectAll_SiteSection]
        /// </summary>
        public static List <SiteSection> GetList()
        {
            List <SiteSectionDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.SiteSection.GetList();

            if (lstDetails == null)
            {
                return(new List <SiteSection>());
            }
            else
            {
                List <SiteSection> lst = new List <SiteSection>();
                foreach (SiteSectionDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.SiteSection obj = new Rebound.GlobalTrader.BLL.SiteSection();
                    obj.SiteSectionId   = objDetails.SiteSectionId;
                    obj.SiteSectionName = objDetails.SiteSectionName;
                    obj.Description     = objDetails.Description;
                    obj.URL             = objDetails.URL;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Esempio n. 2
0
        private static SiteSection PopulateFromDBDetailsObject(SiteSectionDetails obj)
        {
            SiteSection objNew = new SiteSection();

            objNew.SiteSectionId   = obj.SiteSectionId;
            objNew.SiteSectionName = obj.SiteSectionName;
            objNew.Description     = obj.Description;
            objNew.URL             = obj.URL;
            return(objNew);
        }