response = if params[:id].present?
      ClientPrefix.find_by_id(params[:id])
    else
      ClientPrefix.query(
        params[:query],