Example #1
0
        public ActionResult Index()
        {
            if (SessionData.CurrentSession == null)
            {
                SessionData.CurrentSession             = new SessionInfo();
                SessionData.CurrentSession.ListItemAdd = new List <decimal>();
            }
            var lstItems = new List <ItemInfo>();

            try
            {
                lstItems = ItemBL.ItemLoad(Convert.ToInt32(ItemStatus.Normal), CommonSystem.defaultBegin, CommonSystem.defaultEnd);
                SessionData.TotalRecord = CommonSystem.defaultEnd;
                SessionData.CurrentSession.ListItemAdd = ItemBL.ItemIdInCart().Select(d => d.Item_Id).ToList();
            }
            catch (Exception ex)
            {
            }
            return(View(lstItems));
        }