示例#1
0
        public async Task <int> CartCount()
        {
            var cart = await ShoppingCartService.GetCart();

            return(await cart.GetCount());
        }
示例#2
0
        public static async Task <ShoppingCartService> GetCart()
        {
            var cart = new ShoppingCartService();

            return(await Task.FromResult(cart));
        }