public async Task <int> CartCount() { var cart = await ShoppingCartService.GetCart(); return(await cart.GetCount()); }
public static async Task <ShoppingCartService> GetCart() { var cart = new ShoppingCartService(); return(await Task.FromResult(cart)); }