Example #1
0
        public int GetCartNumByUserId(int userid)
        {
            CartDal cartdal = new CartDal();

            if (cartdal.GetCartListByUserId(userid) != null)
            {
                return(cartdal.GetCartListByUserId(userid).Count());
            }
            else
            {
                return(0);
            }
        }
Example #2
0
        public List <T_Cart> GetCartListByUserId(int userid)
        {
            CartDal cartdal = new CartDal();

            return(cartdal.GetCartListByUserId(userid));
        }