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
파일: ShoppingCart.cs 프로젝트: XpiritBV/PU
 public static ShoppingCart GetCart(IPartsUnlimitedContext db, HttpContextBase context)
 {
     var cart = new ShoppingCart(db);
     cart.ShoppingCartId = cart.GetCartId(context);
     return cart;
 }