示例#1
0
 public static ShoppingCart GetCart(DrinkStoreContext db, HttpContext context)
 => GetCart(db, GetCartId(context));
示例#2
0
 public static ShoppingCart GetCart(DrinkStoreContext db, string cartId)
 => new ShoppingCart(db, cartId);
示例#3
0
 private ShoppingCart(DrinkStoreContext dbContext, string id)
 {
     DbContext      = dbContext;
     ShoppingCartId = id;
 }