Ejemplo n.º 1
0
        /// <summary>
        /// GetListForUser
        /// Calls [usp_selectAll_RecentlyViewed_for_User]
        /// </summary>
        public static List <RecentlyViewed> GetListForUser(System.Int32?loginNo)
        {
            List <RecentlyViewedDetails> lstDetails = Rebound.GlobalTrader.DAL.SiteProvider.RecentlyViewed.GetListForUser(loginNo);

            if (lstDetails == null)
            {
                return(new List <RecentlyViewed>());
            }
            else
            {
                List <RecentlyViewed> lst = new List <RecentlyViewed>();
                foreach (RecentlyViewedDetails objDetails in lstDetails)
                {
                    Rebound.GlobalTrader.BLL.RecentlyViewed obj = new Rebound.GlobalTrader.BLL.RecentlyViewed();
                    obj.RecentlyViewedId = objDetails.RecentlyViewedId;
                    obj.LoginNo          = objDetails.LoginNo;
                    obj.PageTitle        = objDetails.PageTitle;
                    obj.PageURL          = objDetails.PageURL;
                    obj.DateAdded        = objDetails.DateAdded;
                    obj.Locked           = objDetails.Locked;
                    obj.RowNum           = objDetails.RowNum;
                    lst.Add(obj);
                    obj = null;
                }
                lstDetails = null;
                return(lst);
            }
        }
Ejemplo n.º 2
0
        private static RecentlyViewed PopulateFromDBDetailsObject(RecentlyViewedDetails obj)
        {
            RecentlyViewed objNew = new RecentlyViewed();

            objNew.RecentlyViewedId = obj.RecentlyViewedId;
            objNew.LoginNo          = obj.LoginNo;
            objNew.PageTitle        = obj.PageTitle;
            objNew.PageURL          = obj.PageURL;
            objNew.DateAdded        = obj.DateAdded;
            objNew.Locked           = obj.Locked;
            objNew.RowNum           = obj.RowNum;
            return(objNew);
        }