public virtual TEntity GetAllReferences(int id, bool @readonly = false) { return(@readonly ? _readOnlyRepository.GetAllReferences(id) : _repository.GetAllReferences(id)); }