bool IRepository <bool, FruitItem> .Add(FruitItem p) { bool result = false; if (_fruitBasketState.CanBeAdded(p)) { _fruitBasketState.Context.Items[p.Key] = p; result = true; } return(result); }
bool IRepository <bool, FruitItem> .Add(FruitItem p) { bool result = false; if (_fruitBasketState.CanBeAdded(p)) { _fruitBasketState.Context.Items[p.Key] = p; result = true; } return(result); }