public virtual Task <IEnumerable <TEntity> > AllAsync(CancellationToken cancellationToken = default(CancellationToken)) { return(_readOnlyRepository.AllAsync(cancellationToken)); }
public virtual Task <IEnumerable <TEntity> > AllAsync(CancellationToken cancellationToken = default(CancellationToken), bool @readonly = false) { return(@readonly ? _readOnlyRepository.AllAsync(cancellationToken) : _repository.AllAsync(cancellationToken, @readonly)); }