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); }
internal Basket GetBasket(int id) { return(Baskets.ContainsKey(id) ? Baskets[id] : null); }