private void DefaultSelector <TCompatibleRequest>(
            CrudRequestConfig <TCompatibleRequest> config)
        {
            var requestKey = config.GetRequestKey();
            var entityKey  = config.GetKeyFor <TEntity>();

            if (requestKey != null && entityKey != null)
            {
                var builder = new SelectorBuilder <TRequest, TEntity>();
                config.SetEntitySelector <TEntity>(builder.Single(requestKey, entityKey));
            }
        }
        private void DefaultSelector <TCompatibleRequest>(
            CrudRequestConfig <TCompatibleRequest> config)
        {
            var itemKey   = config.GetRequestKey();
            var entityKey = config.GetKeyFor <TEntity>();

            if (itemKey != null && entityKey != null)
            {
                var builder = new SelectorBuilder <TRequest, TEntity>();
                config.SetEntitySelector <TEntity>(builder.Collection(_getRequestItems, entityKey, itemKey));
            }
        }