public Get ( bool>.Func |
||
predicate | bool>.Func | |
return |
public Coffeeshop Get(Func<Coffeeshop, bool> predicate = null)
{
return predicate == null
? _repository.Get(p => true)
: _repository.Get(predicate);
}