GetCartId() публичный Метод

public GetCartId ( Microsoft.AspNet.Http.HttpContext context ) : string
context Microsoft.AspNet.Http.HttpContext
Результат string
Пример #1
0
        public static ShoppingCart GetCart(IPartsUnlimitedContext db, HttpContext context)
        {
            var cart = new ShoppingCart(db);

            cart.ShoppingCartId = cart.GetCartId(context);
            return(cart);
        }
Пример #2
0
        public static ShoppingCart GetCart(IPartsUnlimitedContext db, IProductsRepository productsRepository, HttpContext context)
        {
            var cart = new ShoppingCart(db, productsRepository);

            cart.ShoppingCartId = cart.GetCartId(context);
            return(cart);
        }
Пример #3
0
 public static ShoppingCart GetCart(IPartsUnlimitedContext db, HttpContextBase context)
 {
     var cart = new ShoppingCart(db);
     cart.ShoppingCartId = cart.GetCartId(context);
     return cart;
 }