Esempio n. 1
0
        public static int CountProducts(string uid)
        {
            var t = System.Web.HttpContext.Current.User.Identity.GetUserId();

            ComputerStoreClassLib.Model.Context.BasketCts b = new ComputerStoreClassLib.Model.Context.BasketCts();
            int n = 0;

            if (t != null)
            {
                n = b.GetCountProductsForUser(t);
            }

            return(n);
        }