bool IRepository <bool, FruitItem> .Remove(FruitItem p) { bool result = false; if (_fruitBasketState.CanBeRemoved(p)) { _fruitBasketState.Context.Items.Remove(p.Key); result = true; } return(result); }