internal async Task <eSignApiKey> eSignApiKeyGetAsync(Guid accountId, eSignClient eSignClient)
        {
            var sqlParams = new SqlParameter[]
            {
                accountId.ToSql("accountId"),
                eSignClient.ToSql("eSignClientId")
            };

            return(await ExecuteReaderAsync <eSignApiKey>("[eSign].[peSignApiKeyGetByAccountId]", sqlParams));
        }
        internal async Task eSignApiKeySetAsync(Guid accountId, string email, eSignClient eSignClient, string apiKey)
        {
            var sqlParams = new SqlParameter[]
            {
                accountId.ToSql("accountId"),
                email.ToSql("email"),
                eSignClient.ToSql("eSignClientId"),
                apiKey.ToSql("apiKey")
            };

            await ExecuteNonQueryAsync("[eSign].[peSignApiKeySetByAccountId]", sqlParams);
        }
        internal async Task <int> eSignPackageHistoryGetFreeNumberOfSigns(int oauthClientId, eSignClient eSignClient, string ipAddressHash)
        {
            var sqlParams = new SqlParameter[]
            {
                oauthClientId.ToSql("oauthClientId"),
                eSignClient.ToSql("eSignClientId"),

                ipAddressHash.ToSql("ipAddressHash")
            };

            return((int)(await ExecuteScalarAsync("[eSign].[peSignPackageHistoryGetFreeNumberOfSigns]", sqlParams)));
        }