示例#1
0
        bool IRepository <bool, FruitItem> .Add(FruitItem p)
        {
            bool result = false;

            if (_fruitBasketState.CanBeAdded(p))
            {
                _fruitBasketState.Context.Items[p.Key] = p;

                result = true;
            }

            return(result);
        }