Пример #1
0
        internal void AddBasket(int id, string name, string sellerName)
        {
            if (Baskets.ContainsKey(id))
            {
                return;
            }
            var basket = new Basket
            {
                Name       = name,
                SellerName = sellerName
            };

            Baskets.Add(id, basket);
        }
Пример #2
0
 internal Basket GetBasket(int id)
 {
     return(Baskets.ContainsKey(id) ? Baskets[id] : null);
 }