public GetAll ( bool>.Func |
||
predicate | bool>.Func | |
start | int | |
count | int | |
리턴 | IEnumerable |
public IEnumerable<Coffeeshop> GetAll(Func<Coffeeshop, bool> predicate = null, int start = 0, int count = 6)
{
return predicate == null
? _repository.GetAll(p => true)
: start == 0
? _repository.GetAll(predicate)
: _repository.GetAll(predicate, start, count);
}